Don't remove our precious seed migration

This commit is contained in:
Midgard 2020-07-25 12:08:37 +02:00
parent 4911aaeb54
commit 4706f7b5fc
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -38,6 +38,7 @@ reset_db:
make migrate
rewrite_migrations:
@printf "Only for when there is no data in production yet. Continue? (y/N) "; read continue; [ "$$continue" = y ]
rm -f events/migrations/0*_*.py users/migrations/0*_*.py
# Remove migrations but not users' migrations 0001 and 0002
rm -f events/migrations/0*_*.py users/migrations/000[3-9].py users/migrations/00[1-9]*.py
make migrations
make reset_db