Changing question
[edumed.git] / comment / migrations / 0002_auto__add_field_commentdocument_language_code.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
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),
14                       keep_default=False)
15
16
17     def backwards(self, orm):
18         # Deleting field 'CommentDocument.language_code'
19         db.delete_column(u'comment_commentdocument', 'language_code')
20
21
22     models = {
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'})
31         }
32     }
33
34     complete_apps = ['comment']