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 field 'Book._short_html_pl'
12 db.add_column('catalogue_book', '_short_html_pl', self.gf('django.db.models.fields.TextField')(), keep_default=False)
14 # Adding field 'Book._short_html_de'
15 db.add_column('catalogue_book', '_short_html_de', self.gf('django.db.models.fields.TextField')(), keep_default=False)
17 # Adding field 'Book._short_html_en'
18 db.add_column('catalogue_book', '_short_html_en', self.gf('django.db.models.fields.TextField')(), keep_default=False)
20 # Adding field 'Book._short_html_lt'
21 db.add_column('catalogue_book', '_short_html_lt', self.gf('django.db.models.fields.TextField')(), keep_default=False)
23 # Adding field 'Book._short_html_fr'
24 db.add_column('catalogue_book', '_short_html_fr', self.gf('django.db.models.fields.TextField')(), keep_default=False)
26 # Adding field 'Book._short_html_ru'
27 db.add_column('catalogue_book', '_short_html_ru', self.gf('django.db.models.fields.TextField')(), keep_default=False)
29 # Adding field 'Book._short_html_es'
30 db.add_column('catalogue_book', '_short_html_es', self.gf('django.db.models.fields.TextField')(), keep_default=False)
32 # Adding field 'Book._short_html_uk'
33 db.add_column('catalogue_book', '_short_html_uk', self.gf('django.db.models.fields.TextField')(), keep_default=False)
36 def backwards(self, orm):
38 # Deleting field 'Book._short_html_pl'
39 db.delete_column('catalogue_book', '_short_html_pl')
41 # Deleting field 'Book._short_html_de'
42 db.delete_column('catalogue_book', '_short_html_de')
44 # Deleting field 'Book._short_html_en'
45 db.delete_column('catalogue_book', '_short_html_en')
47 # Deleting field 'Book._short_html_lt'
48 db.delete_column('catalogue_book', '_short_html_lt')
50 # Deleting field 'Book._short_html_fr'
51 db.delete_column('catalogue_book', '_short_html_fr')
53 # Deleting field 'Book._short_html_ru'
54 db.delete_column('catalogue_book', '_short_html_ru')
56 # Deleting field 'Book._short_html_es'
57 db.delete_column('catalogue_book', '_short_html_es')
59 # Deleting field 'Book._short_html_uk'
60 db.delete_column('catalogue_book', '_short_html_uk')
65 'Meta': {'object_name': 'Group'},
66 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
68 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
71 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
72 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
73 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
74 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
78 'Meta': {'object_name': 'User'},
79 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
80 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
81 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
82 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
83 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
85 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
86 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
87 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
88 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
89 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
90 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
91 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
94 'Meta': {'object_name': 'Book'},
95 '_short_html': ('django.db.models.fields.TextField', [], {}),
96 '_short_html_de': ('django.db.models.fields.TextField', [], {}),
97 '_short_html_en': ('django.db.models.fields.TextField', [], {}),
98 '_short_html_es': ('django.db.models.fields.TextField', [], {}),
99 '_short_html_fr': ('django.db.models.fields.TextField', [], {}),
100 '_short_html_lt': ('django.db.models.fields.TextField', [], {}),
101 '_short_html_pl': ('django.db.models.fields.TextField', [], {}),
102 '_short_html_ru': ('django.db.models.fields.TextField', [], {}),
103 '_short_html_uk': ('django.db.models.fields.TextField', [], {}),
104 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
105 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
106 'extra_info': ('catalogue.fields.JSONField', [], {}),
107 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
108 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
109 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110 'mp3_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
111 'odt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
112 'ogg_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
113 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
114 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
115 'pdf_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
116 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
117 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
118 'txt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
119 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
120 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'})
122 'catalogue.bookstub': {
123 'Meta': {'object_name': 'BookStub'},
124 'author': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
125 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
126 'pd': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
127 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
128 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
129 'translator': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
130 'translator_death': ('django.db.models.fields.TextField', [], {'blank': 'True'})
132 'catalogue.fragment': {
133 'Meta': {'object_name': 'Fragment'},
134 '_short_html': ('django.db.models.fields.TextField', [], {}),
135 'anchor': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
136 'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'fragments'", 'to': "orm['catalogue.Book']"}),
137 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
138 'short_text': ('django.db.models.fields.TextField', [], {}),
139 'text': ('django.db.models.fields.TextField', [], {})
142 'Meta': {'object_name': 'Tag'},
143 'book_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
144 'category': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
145 'death': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
146 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
147 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
148 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
149 'main_page': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
150 'name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
151 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
152 'sort_key': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'db_index': 'True'}),
153 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
154 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'})
156 'catalogue.tagrelation': {
157 'Meta': {'unique_together': "(('tag', 'content_type', 'object_id'),)", 'object_name': 'TagRelation', 'db_table': "'catalogue_tag_relation'"},
158 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
159 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
160 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
161 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'items'", 'to': "orm['catalogue.Tag']"})
163 'contenttypes.contenttype': {
164 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
165 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
166 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
168 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
172 complete_apps = ['catalogue']