From 4706f7b5fc4cddfbd280555969035b03b656740b Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 25 Jul 2020 12:08:37 +0200 Subject: [PATCH] Don't remove our precious seed migration --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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