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