From: Radek Czajka Date: Thu, 27 May 2010 08:24:42 +0000 (+0200) Subject: migrations fix for sqlite X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/d2efc0e7b845648bb915b4665beb3e2e81d4a417?ds=inline;hp=6e404619938ccba6732fc9b8a3fb6c90a27bad76 migrations fix for sqlite --- 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):