X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/069d8476540f79fb4c37ccd219d6b794656baf0d..02b46ac5bb9ae5301e4764b9c111c971aa86b333:/apps/catalogue/migrations/0009_auto.py diff --git a/apps/catalogue/migrations/0009_auto.py b/apps/catalogue/migrations/0009_auto.py index 315387926..9c8e5c978 100644 --- a/apps/catalogue/migrations/0009_auto.py +++ b/apps/catalogue/migrations/0009_auto.py @@ -11,6 +11,9 @@ class Migration(SchemaMigration): # Removing M2M table for field medias on 'Book' db.delete_table('catalogue_book_medias') + # Changing field 'BookMedia.book' + db.alter_column('catalogue_bookmedia', 'book_id', self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm['catalogue.Book'])) + def backwards(self, orm): @@ -22,6 +25,9 @@ class Migration(SchemaMigration): )) db.create_unique('catalogue_book_medias', ['book_id', 'bookmedia_id']) + # Changing field 'BookMedia.book' + db.alter_column('catalogue_bookmedia', 'book_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['catalogue.Book'])) + models = { 'auth.group': {