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'
13 db.alter_column(u'chunks_chunk', 'content', self.gf('django.db.models.fields.TextField')(null=True))
15 # Changing field 'Chunk.description'
16 db.alter_column(u'chunks_chunk', 'description', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
18 def backwards(self, orm):
20 # Changing field 'Chunk.content'
21 db.alter_column(u'chunks_chunk', 'content', self.gf('django.db.models.fields.TextField')(default=''))
23 # Changing field 'Chunk.description'
24 db.alter_column(u'chunks_chunk', 'description', self.gf('django.db.models.fields.CharField')(default='', max_length=255))
27 u'chunks.attachment': {
28 'Meta': {'ordering': "('key',)", 'object_name': 'Attachment'},
29 'attachment': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
30 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
33 'Meta': {'ordering': "('key',)", 'object_name': 'Chunk'},
34 'content': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
35 'content_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
36 'content_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
37 'content_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
38 'content_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
39 'content_it': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
40 'content_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
41 'content_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
42 'content_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
43 'content_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
44 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
45 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'})
49 complete_apps = ['chunks']