Changeset View
Changeset View
Standalone View
Standalone View
blog/migrations/0001_initial.py
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | operations = [ | ||||
| ), | ), | ||||
| ), | ), | ||||
| ( | ( | ||||
| 'storage_location', | 'storage_location', | ||||
| models.ForeignKey( | models.ForeignKey( | ||||
| on_delete=django.db.models.deletion.PROTECT, | on_delete=django.db.models.deletion.PROTECT, | ||||
| related_name='revisions', | related_name='revisions', | ||||
| to='static_assets.StorageLocation', | to='static_assets.StorageLocation', | ||||
| null=True, | |||||
railla: Without `storage_location` being nullable it's not possible to downgrade this migration at all… | |||||
| ), | ), | ||||
| ), | ), | ||||
| ], | ], | ||||
| options={'abstract': False,}, | options={'abstract': False,}, | ||||
| ), | ), | ||||
| migrations.CreateModel( | migrations.CreateModel( | ||||
| name='PostComment', | name='PostComment', | ||||
| fields=[ | fields=[ | ||||
| Show All 37 Lines | |||||
Without storage_location being nullable it's not possible to downgrade this migration at all, this at least allows downgrade to run without raising integrity errors.
(this obviously doesn't make this change revertable, because storage_location values are lost nonetheless)