uncloud-mravi/bin/make-migrations-from-scratch.sh

8 lines
255 B
Bash
Raw Normal View History

#!/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