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):
11 # Adding field 'CommentDocument.language_code'
12 db.add_column(u'comment_commentdocument', 'language_code',
13 self.gf('django.db.models.fields.CharField')(default='pl', max_length=2),
17 def backwards(self, orm):
18 # Deleting field 'CommentDocument.language_code'
19 db.delete_column(u'comment_commentdocument', 'language_code')
23 u'comment.commentdocument': {
24 'Meta': {'ordering': "['order']", 'object_name': 'CommentDocument'},
25 'comment_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
26 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27 'language_code': ('django.db.models.fields.CharField', [], {'default': "'pl'", 'max_length': '2'}),
28 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
29 'order': ('django.db.models.fields.IntegerField', [], {}),
30 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'})
34 complete_apps = ['comment']