add script to reset migrations
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
8decfe1b16
commit
3ef19610f3
1 changed files with 7 additions and 0 deletions
7
bin/make-migrations-from-scratch.sh
Normal file
7
bin/make-migrations-from-scratch.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# For undoing/redoing everything
|
||||||
|
# Needed in special cases and needs to be avoided as soon as
|
||||||
|
# uncloud.version >= 1
|
||||||
|
for a in */migrations; do rm ${a}/*.py; done
|
||||||
|
for a in */migrations; do python manage.py makemigrations ${a%%/migrations}; done
|
Loading…
Reference in a new issue