Remove migration rewriting from Makefile

Now that we're live, we can't rewrite migration history.
This commit is contained in:
Midgard 2020-07-26 00:56:43 +02:00
parent 772c6eff1f
commit e2a82dcf74
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -31,8 +31,4 @@ reset_db:
esac esac
make migrate make migrate
rewrite_migrations: rewrite_migrations:
@printf "Only for when there is no data in production yet. Continue? (y/N) "; read continue; [ "$$continue" = y ] @echo "We have data in production. This is not allowed any more."; exit 1
# 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