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 'Fragment._short_html_de'
12 db.add_column('catalogue_fragment', '_short_html_de', self.gf('django.db.models.fields.TextField')(), keep_default=False)
14 # Adding field 'Fragment._short_html_pl'
15 db.add_column('catalogue_fragment', '_short_html_pl', self.gf('django.db.models.fields.TextField')(), keep_default=False)
17 # Adding field 'Fragment._short_html_lt'
18 db.add_column('catalogue_fragment', '_short_html_lt', self.gf('django.db.models.fields.TextField')(), keep_default=False)
20 # Adding field 'Fragment._short_html_en'
21 db.add_column('catalogue_fragment', '_short_html_en', self.gf('django.db.models.fields.TextField')(), keep_default=False)
23 # Adding field 'Fragment._short_html_fr'
24 db.add_column('catalogue_fragment', '_short_html_fr', self.gf('django.db.models.fields.TextField')(), keep_default=False)
26 # Adding field 'Fragment._short_html_ru'
27 db.add_column('catalogue_fragment', '_short_html_ru', self.gf('django.db.models.fields.TextField')(), keep_default=False)
29 # Adding field 'Fragment._short_html_es'
30 db.add_column('catalogue_fragment', '_short_html_es', self.gf('django.db.models.fields.TextField')(), keep_default=False)
32 # Adding field 'Fragment._short_html_uk'
33 db.add_column('catalogue_fragment', '_short_html_uk', self.gf('django.db.models.fields.TextField')(), keep_default=False)
36 def backwards(self, orm):
38 # Deleting field 'Fragment._short_html_de'
39 db.delete_column('catalogue_fragment', '_short_html_de')
41 # Deleting field 'Fragment._short_html_pl'
42 db.delete_column('catalogue_fragment', '_short_html_pl')
44 # Deleting field 'Fragment._short_html_lt'
45 db.delete_column('catalogue_fragment', '_short_html_lt')
47 # Deleting field 'Fragment._short_html_en'
48 db.delete_column('catalogue_fragment', '_short_html_en')
50 # Deleting field 'Fragment._short_html_fr'
51 db.delete_column('catalogue_fragment', '_short_html_fr')
53 # Deleting field 'Fragment._short_html_ru'
54 db.delete_column('catalogue_fragment', '_short_html_ru')
56 # Deleting field 'Fragment._short_html_es'
57 db.delete_column('catalogue_fragment', '_short_html_es')
59 # Deleting field 'Fragment._short_html_uk'
60 db.delete_column('catalogue_fragment', '_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 '_short_html_de': ('django.db.models.fields.TextField', [], {}),
136 '_short_html_en': ('django.db.models.fields.TextField', [], {}),
137 '_short_html_es': ('django.db.models.fields.TextField', [], {}),
138 '_short_html_fr': ('django.db.models.fields.TextField', [], {}),
139 '_short_html_lt': ('django.db.models.fields.TextField', [], {}),
140 '_short_html_pl': ('django.db.models.fields.TextField', [], {}),
141 '_short_html_ru': ('django.db.models.fields.TextField', [], {}),
142 '_short_html_uk': ('django.db.models.fields.TextField', [], {}),
143 'anchor': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
144 'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'fragments'", 'to': "orm['catalogue.Book']"}),
145 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
146 'short_text': ('django.db.models.fields.TextField', [], {}),
147 'text': ('django.db.models.fields.TextField', [], {})
150 'Meta': {'object_name': 'Tag'},
151 'book_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
152 'category': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
153 'death': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
154 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
155 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
156 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
157 'main_page': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
158 'name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
159 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
160 'sort_key': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'db_index': 'True'}),
161 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
162 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'})
164 'catalogue.tagrelation': {
165 'Meta': {'unique_together': "(('tag', 'content_type', 'object_id'),)", 'object_name': 'TagRelation', 'db_table': "'catalogue_tag_relation'"},
166 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
167 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
168 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
169 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'items'", 'to': "orm['catalogue.Tag']"})
171 'contenttypes.contenttype': {
172 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
173 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
174 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
175 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
176 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
180 complete_apps = ['catalogue']