Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Database: clear migrations, move data migrations → fixtures #626
We have a number of data migrations that input new values into empty database. Try creating a fresh new database:
$ rm db.sqlite3 $ ./manage.py migrate $ make superuser $ make serve
Now log in with
Since we're switching to fake-generated "fixtures" (see #534 for details), I'd like also to get rid of all migrations that provide initial values for some of the models, and instead use fixtures for that.
I think we can safely use fixtures because these initial values don't change so often.
Also, I think removing all migrations (or squashing them while dropping data migrations) needs to be done carefully. It may require a release solely for this change (so that no new migrations are added).