648aa097f24ff1292544a485e1130b7e1fc4bd84
[wolnelektury.git] / apps / catalogue / migrations / 0002_add_extra_info_to_book.py
1 from south.db import db
2 from catalogue.fields import JSONField
3
4 class Migration:
5     
6     def forwards(self):
7         db.add_column('catalogue_book', 'extra_info', JSONField(null=False, default='{}'))
8     
9     def backwards(self):
10         db.delete_column('catalogue_book', 'extra_info')
11