From d2efc0e7b845648bb915b4665beb3e2e81d4a417 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 27 May 2010 10:24:42 +0200 Subject: [PATCH] migrations fix for sqlite --- .../migrations/0009__short_html_translation.py | 16 ++++++++-------- .../0010_fragment_short_html_translations.py | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/apps/catalogue/migrations/0009__short_html_translation.py b/apps/catalogue/migrations/0009__short_html_translation.py index c67fc22ff..1a47e8f2e 100644 --- a/apps/catalogue/migrations/0009__short_html_translation.py +++ b/apps/catalogue/migrations/0009__short_html_translation.py @@ -9,28 +9,28 @@ class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Book._short_html_pl' - db.add_column('catalogue_book', '_short_html_pl', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_book', '_short_html_pl', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Book._short_html_de' - db.add_column('catalogue_book', '_short_html_de', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_book', '_short_html_de', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Book._short_html_en' - db.add_column('catalogue_book', '_short_html_en', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_book', '_short_html_en', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Book._short_html_lt' - db.add_column('catalogue_book', '_short_html_lt', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_book', '_short_html_lt', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Book._short_html_fr' - db.add_column('catalogue_book', '_short_html_fr', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_book', '_short_html_fr', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Book._short_html_ru' - db.add_column('catalogue_book', '_short_html_ru', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_book', '_short_html_ru', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Book._short_html_es' - db.add_column('catalogue_book', '_short_html_es', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_book', '_short_html_es', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Book._short_html_uk' - db.add_column('catalogue_book', '_short_html_uk', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_book', '_short_html_uk', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) def backwards(self, orm): diff --git a/apps/catalogue/migrations/0010_fragment_short_html_translations.py b/apps/catalogue/migrations/0010_fragment_short_html_translations.py index e241a16de..6e6b5550f 100644 --- a/apps/catalogue/migrations/0010_fragment_short_html_translations.py +++ b/apps/catalogue/migrations/0010_fragment_short_html_translations.py @@ -9,28 +9,28 @@ class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Fragment._short_html_de' - db.add_column('catalogue_fragment', '_short_html_de', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_fragment', '_short_html_de', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Fragment._short_html_pl' - db.add_column('catalogue_fragment', '_short_html_pl', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_fragment', '_short_html_pl', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Fragment._short_html_lt' - db.add_column('catalogue_fragment', '_short_html_lt', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_fragment', '_short_html_lt', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Fragment._short_html_en' - db.add_column('catalogue_fragment', '_short_html_en', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_fragment', '_short_html_en', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Fragment._short_html_fr' - db.add_column('catalogue_fragment', '_short_html_fr', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_fragment', '_short_html_fr', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Fragment._short_html_ru' - db.add_column('catalogue_fragment', '_short_html_ru', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_fragment', '_short_html_ru', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Fragment._short_html_es' - db.add_column('catalogue_fragment', '_short_html_es', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_fragment', '_short_html_es', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) # Adding field 'Fragment._short_html_uk' - db.add_column('catalogue_fragment', '_short_html_uk', self.gf('django.db.models.fields.TextField')(), keep_default=False) + db.add_column('catalogue_fragment', '_short_html_uk', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) def backwards(self, orm): -- 2.20.1