Remove migration rewriting from Makefile
Now that we're live, we can't rewrite migration history.
This commit is contained in:
parent
772c6eff1f
commit
e2a82dcf74
1 changed files with 1 additions and 5 deletions
6
Makefile
6
Makefile
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue