From 40493abd4e0a4210091822d47cb2d2c200589306 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Thu, 16 Oct 2008 12:30:02 +0200 Subject: [PATCH] Added migration to add extra info to book. --- .../migrations/0002_add_extra_info_to_book.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/catalogue/migrations/0002_add_extra_info_to_book.py diff --git a/apps/catalogue/migrations/0002_add_extra_info_to_book.py b/apps/catalogue/migrations/0002_add_extra_info_to_book.py new file mode 100644 index 000000000..145d7116c --- /dev/null +++ b/apps/catalogue/migrations/0002_add_extra_info_to_book.py @@ -0,0 +1,11 @@ +from south.db import db +from catalogue.fields import JSONField + +class Migration: + + def forwards(self): + db.add_column('catalogue_book', 'extra_info', JSONField()) + + def backwards(self): + db.delete_column('catalogue_book', 'extra_info') + -- 2.20.1