diff --git a/Makefile b/Makefile index 83f5927..73e9bfb 100644 --- a/Makefile +++ b/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