aboutsummaryrefslogtreecommitdiffstats
path: root/docker/instance_init.sh
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-04-04 17:33:59 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-04-04 17:34:08 +0800
commitd346c27489a1c01848c92b8ea0308fd6e94649d2 (patch)
treed41dc3b855353cecb011d0c6cb9414791c10de69 /docker/instance_init.sh
parent8cf5ec4adee3868174f1a7c2735a7fca8992f498 (diff)
fix the bug of database migrate
Change-Id: I90dc350955f6013ff390682d928a93ef13b2c6f8 Issue-ID: VFC-1339 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker/instance_init.sh')
-rwxr-xr-xdocker/instance_init.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
index f789a972..a3ca889c 100755
--- a/docker/instance_init.sh
+++ b/docker/instance_init.sh
@@ -20,6 +20,7 @@ function create_database {
function migrate_database {
cd /service/vfc/nfvo/catalog
python manage.py makemigrations database
+ python manage.py migrate --fake
python manage.py migrate
}