From: Marek Stępniowski Date: Thu, 16 Oct 2008 10:30:02 +0000 (+0200) Subject: Added migration to add extra info to book. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/40493abd4e0a4210091822d47cb2d2c200589306?ds=sidebyside;hp=-c Added migration to add extra info to book. --- 40493abd4e0a4210091822d47cb2d2c200589306 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') +