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):
11 # Adding model 'FileRecord'
12 db.create_table('catalogue_filerecord', (
13 ('time', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
14 ('sha1', self.gf('django.db.models.fields.CharField')(max_length=40)),
15 ('type', self.gf('django.db.models.fields.CharField')(max_length=20, db_index=True)),
16 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
17 ('slug', self.gf('django.db.models.fields.SlugField')(max_length=120, db_index=True)),
19 db.send_create_signal('catalogue', ['FileRecord'])
22 def backwards(self, orm):
24 # Deleting model 'FileRecord'
25 db.delete_table('catalogue_filerecord')
30 'Meta': {'object_name': 'Group'},
31 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
33 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
36 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
37 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
38 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
39 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
43 'Meta': {'object_name': 'User'},
44 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
45 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
46 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
47 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
48 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
50 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
51 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
52 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
53 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
54 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
55 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
56 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
59 'Meta': {'object_name': 'Book'},
60 '_short_html': ('django.db.models.fields.TextField', [], {}),
61 '_short_html_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
62 '_short_html_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
63 '_short_html_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
64 '_short_html_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
65 '_short_html_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
66 '_short_html_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
67 '_short_html_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
68 '_short_html_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
69 '_tag_counter': ('catalogue.fields.JSONField', [], {'null': 'True'}),
70 '_theme_counter': ('catalogue.fields.JSONField', [], {'null': 'True'}),
71 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
72 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
73 'epub_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
74 'extra_info': ('catalogue.fields.JSONField', [], {}),
75 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
76 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
77 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78 'mp3_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
79 'odt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
80 'ogg_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
81 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
82 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
83 'pdf_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
84 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
85 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
86 'txt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
87 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
88 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'})
90 'catalogue.bookstub': {
91 'Meta': {'object_name': 'BookStub'},
92 'author': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
93 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94 'pd': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
95 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
96 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
97 'translator': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
98 'translator_death': ('django.db.models.fields.TextField', [], {'blank': 'True'})
100 'catalogue.filerecord': {
101 'Meta': {'object_name': 'FileRecord'},
102 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
103 'sha1': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
104 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'db_index': 'True'}),
105 'time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
106 'type': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_index': 'True'})
108 'catalogue.fragment': {
109 'Meta': {'object_name': 'Fragment'},
110 '_short_html': ('django.db.models.fields.TextField', [], {}),
111 '_short_html_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
112 '_short_html_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
113 '_short_html_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
114 '_short_html_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
115 '_short_html_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
116 '_short_html_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
117 '_short_html_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
118 '_short_html_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
119 'anchor': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
120 'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'fragments'", 'to': "orm['catalogue.Book']"}),
121 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122 'short_text': ('django.db.models.fields.TextField', [], {}),
123 'text': ('django.db.models.fields.TextField', [], {})
126 'Meta': {'unique_together': "(('slug', 'category'),)", 'object_name': 'Tag'},
127 'book_count': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
128 'category': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
129 'death': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
130 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
131 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
132 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
133 'main_page': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
134 'name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
135 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'db_index': 'True'}),
136 'sort_key': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'db_index': 'True'}),
137 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
138 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'})
140 'catalogue.tagrelation': {
141 'Meta': {'unique_together': "(('tag', 'content_type', 'object_id'),)", 'object_name': 'TagRelation', 'db_table': "'catalogue_tag_relation'"},
142 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
143 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
144 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
145 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'items'", 'to': "orm['catalogue.Tag']"})
147 'contenttypes.contenttype': {
148 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
149 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
150 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
152 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
156 complete_apps = ['catalogue']