3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
12 db.create_table('dictionary_note', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('book', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catalogue.Book'])),
15 ('anchor', self.gf('django.db.models.fields.CharField')(max_length=64)),
16 ('html', self.gf('django.db.models.fields.TextField')()),
17 ('sort_key', self.gf('django.db.models.fields.CharField')(max_length=128, db_index=True)),
19 db.send_create_signal('dictionary', ['Note'])
22 def backwards(self, orm):
24 # Deleting model 'Note'
25 db.delete_table('dictionary_note')
30 'Meta': {'ordering': "('sort_key',)", 'object_name': 'Book'},
31 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
32 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
33 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
34 'epub_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
35 'extra_info': ('catalogue.fields.JSONField', [], {'default': "'{}'"}),
36 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
37 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
38 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
40 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
41 'pdf_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
42 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
43 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
44 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
45 'txt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
46 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
47 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'})
50 'Meta': {'ordering': "['sort_key']", 'object_name': 'Note'},
51 'anchor': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
52 'book': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalogue.Book']"}),
53 'html': ('django.db.models.fields.TextField', [], {}),
54 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55 'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'})
59 complete_apps = ['dictionary']