1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
12 # Changing field 'Chunk.content_fr'
13 db.alter_column(u'chunks_chunk', 'content_fr', self.gf('django.db.models.fields.TextField')(null=True))
15 # Changing field 'Chunk.content_ru'
16 db.alter_column(u'chunks_chunk', 'content_ru', self.gf('django.db.models.fields.TextField')(null=True))
18 # Changing field 'Chunk.content_es'
19 db.alter_column(u'chunks_chunk', 'content_es', self.gf('django.db.models.fields.TextField')(null=True))
21 # Changing field 'Chunk.content_it'
22 db.alter_column(u'chunks_chunk', 'content_it', self.gf('django.db.models.fields.TextField')(null=True))
24 # Changing field 'Chunk.content_uk'
25 db.alter_column(u'chunks_chunk', 'content_uk', self.gf('django.db.models.fields.TextField')(null=True))
27 # Changing field 'Chunk.content_de'
28 db.alter_column(u'chunks_chunk', 'content_de', self.gf('django.db.models.fields.TextField')(null=True))
30 # Changing field 'Chunk.content_lt'
31 db.alter_column(u'chunks_chunk', 'content_lt', self.gf('django.db.models.fields.TextField')(null=True))
33 # Changing field 'Chunk.content_pl'
34 db.alter_column(u'chunks_chunk', 'content_pl', self.gf('django.db.models.fields.TextField')(null=True))
36 # Changing field 'Chunk.content_en'
37 db.alter_column(u'chunks_chunk', 'content_en', self.gf('django.db.models.fields.TextField')(null=True))
39 def backwards(self, orm):
41 # Changing field 'Chunk.content_fr'
42 db.alter_column(u'chunks_chunk', 'content_fr', self.gf('django.db.models.fields.TextField')(null=True))
44 # Changing field 'Chunk.content_ru'
45 db.alter_column(u'chunks_chunk', 'content_ru', self.gf('django.db.models.fields.TextField')(null=True))
47 # Changing field 'Chunk.content_es'
48 db.alter_column(u'chunks_chunk', 'content_es', self.gf('django.db.models.fields.TextField')(null=True))
50 # Changing field 'Chunk.content_it'
51 db.alter_column(u'chunks_chunk', 'content_it', self.gf('django.db.models.fields.TextField')(null=True))
53 # Changing field 'Chunk.content_uk'
54 db.alter_column(u'chunks_chunk', 'content_uk', self.gf('django.db.models.fields.TextField')(null=True))
56 # Changing field 'Chunk.content_de'
57 db.alter_column(u'chunks_chunk', 'content_de', self.gf('django.db.models.fields.TextField')(null=True))
59 # Changing field 'Chunk.content_lt'
60 db.alter_column(u'chunks_chunk', 'content_lt', self.gf('django.db.models.fields.TextField')(null=True))
62 # Changing field 'Chunk.content_pl'
63 db.alter_column(u'chunks_chunk', 'content_pl', self.gf('django.db.models.fields.TextField')(null=True))
65 # Changing field 'Chunk.content_en'
66 db.alter_column(u'chunks_chunk', 'content_en', self.gf('django.db.models.fields.TextField')(null=True))
69 u'chunks.attachment': {
70 'Meta': {'ordering': "('key',)", 'object_name': 'Attachment'},
71 'attachment': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
72 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
75 'Meta': {'ordering': "('key',)", 'object_name': 'Chunk'},
76 'content': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
77 'content_de': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
78 'content_en': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
79 'content_es': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
80 'content_fr': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
81 'content_it': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
82 'content_lt': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
83 'content_pl': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
84 'content_ru': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
85 'content_uk': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
86 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
87 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
91 complete_apps = ['chunks']