Don't remove our precious seed migration
This commit is contained in:
parent
4911aaeb54
commit
4706f7b5fc
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue