From 3ef19610f3bcda557d90a4ee9ebcc7b562507d77 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 21 Jun 2020 14:34:48 +0200 Subject: [PATCH] add script to reset migrations Signed-off-by: Nico Schottelius --- bin/make-migrations-from-scratch.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bin/make-migrations-from-scratch.sh diff --git a/bin/make-migrations-from-scratch.sh b/bin/make-migrations-from-scratch.sh new file mode 100644 index 0000000..8baccfa --- /dev/null +++ b/bin/make-migrations-from-scratch.sh @@ -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