Added migration to add extra info to book.
authorMarek Stępniowski <marek@stepniowski.com>
Thu, 16 Oct 2008 10:30:02 +0000 (12:30 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Thu, 16 Oct 2008 10:30:02 +0000 (12:30 +0200)
apps/catalogue/migrations/0002_add_extra_info_to_book.py [new file with mode: 0644]

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 (file)
index 0000000..145d711
--- /dev/null
@@ -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')
+