From 5c90ae87f87fd1223a4b0be7d16de5c9e9eb37b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Mon, 19 Oct 2009 22:53:01 +0200 Subject: [PATCH] =?utf8?q?Poprawienie=20migracji=20dla=200002=20dla=20MySQ?= =?utf8?q?L,=20kt=C3=B3re=20nie=20uznaje=20default=20dla=20p=C3=B3l=20typu?= =?utf8?q?=20BLOB/TEXT.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- apps/catalogue/migrations/0002_add_extra_info_to_book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/catalogue/migrations/0002_add_extra_info_to_book.py b/apps/catalogue/migrations/0002_add_extra_info_to_book.py index 648aa097f..6de40ba94 100644 --- a/apps/catalogue/migrations/0002_add_extra_info_to_book.py +++ b/apps/catalogue/migrations/0002_add_extra_info_to_book.py @@ -4,7 +4,7 @@ from catalogue.fields import JSONField class Migration: def forwards(self): - db.add_column('catalogue_book', 'extra_info', JSONField(null=False, default='{}')) + db.add_column('catalogue_book', 'extra_info', JSONField(null=True)) def backwards(self): db.delete_column('catalogue_book', 'extra_info') -- 2.20.1