ResonantGeoData / RD-OASIS

ResonantGeoData OASIS Deployment
Apache License 2.0
2 stars 1 forks source link

Squash migrations #52

Closed mvandenburgh closed 2 years ago

mvandenburgh commented 2 years ago

This line in one of the migrations is resulting in a empty Dataset being created whenever ./manage.py migrate is run. This is needed because that migration was making a nullable field of an existing model non-nullable; because of this every existing nullable field had to be set to something, so this dummy dataset is created for that purpose. This can be confusing for downstream projects when an empty dataset appears after running migrations.

This PR squashes migrations so that this field can just be non-nullable from the start and not require creating a dataset.

mvandenburgh commented 2 years ago

@AlmightyYakob @banesullivan afaik, Danesfield is the only downstream project using OASIS, so this should be safe to do.