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 model 'CommentDocument'
12 db.create_table(u'comment_commentdocument', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
15 ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=255)),
16 ('comment_id', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
17 ('order', self.gf('django.db.models.fields.IntegerField')()),
19 db.send_create_signal(u'comment', ['CommentDocument'])
22 def backwards(self, orm):
23 # Deleting model 'CommentDocument'
24 db.delete_table(u'comment_commentdocument')
28 u'comment.commentdocument': {
29 'Meta': {'ordering': "['order']", 'object_name': 'CommentDocument'},
30 'comment_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
31 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
33 'order': ('django.db.models.fields.IntegerField', [], {}),
34 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'})
38 complete_apps = ['comment']