From 49e6729abcd00e5ad2d003f19685d64da451b7ba Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Thu, 1 Mar 2012 12:45:55 +0100 Subject: [PATCH] migration for infopages table --- ...it__add_field_infopage_title_jp__add_fi.py | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 apps/infopages/migrations/0003_auto__add_field_infopage_title_it__add_field_infopage_title_jp__add_fi.py diff --git a/apps/infopages/migrations/0003_auto__add_field_infopage_title_it__add_field_infopage_title_jp__add_fi.py b/apps/infopages/migrations/0003_auto__add_field_infopage_title_it__add_field_infopage_title_jp__add_fi.py new file mode 100644 index 000000000..bb561692e --- /dev/null +++ b/apps/infopages/migrations/0003_auto__add_field_infopage_title_it__add_field_infopage_title_jp__add_fi.py @@ -0,0 +1,93 @@ +# encoding: utf-8 +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + +class Migration(SchemaMigration): + + def forwards(self, orm): + + # Adding field 'InfoPage.title_it' + db.add_column('infopages_infopage', 'title_it', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True), keep_default=False) + + # Adding field 'InfoPage.title_jp' + db.add_column('infopages_infopage', 'title_jp', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True), keep_default=False) + + # Adding field 'InfoPage.left_column_it' + db.add_column('infopages_infopage', 'left_column_it', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) + + # Adding field 'InfoPage.left_column_jp' + db.add_column('infopages_infopage', 'left_column_jp', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) + + # Adding field 'InfoPage.right_column_it' + db.add_column('infopages_infopage', 'right_column_it', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) + + # Adding field 'InfoPage.right_column_jp' + db.add_column('infopages_infopage', 'right_column_jp', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) + + + def backwards(self, orm): + + # Deleting field 'InfoPage.title_it' + db.delete_column('infopages_infopage', 'title_it') + + # Deleting field 'InfoPage.title_jp' + db.delete_column('infopages_infopage', 'title_jp') + + # Deleting field 'InfoPage.left_column_it' + db.delete_column('infopages_infopage', 'left_column_it') + + # Deleting field 'InfoPage.left_column_jp' + db.delete_column('infopages_infopage', 'left_column_jp') + + # Deleting field 'InfoPage.right_column_it' + db.delete_column('infopages_infopage', 'right_column_it') + + # Deleting field 'InfoPage.right_column_jp' + db.delete_column('infopages_infopage', 'right_column_jp') + + + models = { + 'infopages.infopage': { + 'Meta': {'ordering': "('main_page', 'slug')", 'object_name': 'InfoPage'}, + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'left_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'left_column_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_it': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_jp': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'left_column_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'main_page': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), + 'right_column': ('django.db.models.fields.TextField', [], {'blank': 'True'}), + 'right_column_de': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_en': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_es': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_fr': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_it': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_jp': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_lt': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_pl': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_ru': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'right_column_uk': ('django.db.models.fields.TextField', [], {'null': True, 'blank': True}), + 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}), + 'title': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}), + 'title_de': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_es': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_fr': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_it': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_jp': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_lt': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_ru': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}), + 'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}) + } + } + + complete_apps = ['infopages'] -- 2.20.1