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 # Deleting field 'InfoPage.left_column_jp'
12 db.delete_column('infopages_infopage', 'left_column_jp')
14 # Deleting field 'InfoPage.title_jp'
15 db.delete_column('infopages_infopage', 'title_jp')
17 # Deleting field 'InfoPage.right_column_jp'
18 db.delete_column('infopages_infopage', 'right_column_jp')
21 def backwards(self, orm):
23 # Adding field 'InfoPage.left_column_jp'
24 db.add_column('infopages_infopage', 'left_column_jp', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False)
26 # Adding field 'InfoPage.title_jp'
27 db.add_column('infopages_infopage', 'title_jp', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True), keep_default=False)
29 # Adding field 'InfoPage.right_column_jp'
30 db.add_column('infopages_infopage', 'right_column_jp', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False)
34 'infopages.infopage': {
35 'Meta': {'ordering': "('main_page', 'slug')", 'object_name': 'InfoPage'},
36 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37 'left_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
38 'left_column_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
39 'left_column_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
40 'left_column_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
41 'left_column_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
42 'left_column_it': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
43 'left_column_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
44 'left_column_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
45 'left_column_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
46 'left_column_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
47 'main_page': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
48 'right_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
49 'right_column_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
50 'right_column_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
51 'right_column_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
52 'right_column_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
53 'right_column_it': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
54 'right_column_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
55 'right_column_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
56 'right_column_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
57 'right_column_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}),
58 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
59 'title': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
60 'title_de': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
61 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
62 'title_es': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
63 'title_fr': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
64 'title_it': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
65 'title_lt': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
66 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
67 'title_ru': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}),
68 'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True})
72 complete_apps = ['infopages']