From e2a82dcf748889790c0b55f8b69cbd1682ae462e Mon Sep 17 00:00:00 2001 From: Midgard Date: Sun, 26 Jul 2020 00:56:43 +0200 Subject: [PATCH] Remove migration rewriting from Makefile Now that we're live, we can't rewrite migration history. --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fb2f6e9..c9fa40b 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,4 @@ reset_db: esac make migrate rewrite_migrations: - @printf "Only for when there is no data in production yet. Continue? (y/N) "; read continue; [ "$$continue" = y ] - # 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 + @echo "We have data in production. This is not allowed any more."; exit 1