From 8c67c022d9e267ef7c92ac9feebf672dedf53852 Mon Sep 17 00:00:00 2001 From: Emilie Date: Fri, 15 Dec 2017 12:32:47 +0100 Subject: [PATCH] [updage] : migrate as option --- upgrade.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upgrade.sh b/upgrade.sh index ffbf134..6cc0203 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -7,7 +7,10 @@ git pull ./bin/update_submodules.sh # Apply migrations -docker-compose run app python /srv/app/manage.py migrate +if [ "$1" = "--migrate" ]; + then + docker-compose run app python /srv/app/manage.py migrate +fi # Build front-end ./bin/build_front.sh -- 2.39.5