summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2019-04-08 01:29:37 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-08 01:29:37 +0000
commit8f09fb9cf1574253117957bf3f780ce21bf17a67 (patch)
tree1660348edf376f65cd4d0c567e951e07bd38b496 /lcm
parent8209c63d711ff4d3c705ec563d526d6444025897 (diff)
parentc281d481fa1ea8cc56f3ed213b58880a2010b185 (diff)
Merge "fix the bug of database migrate"
Diffstat (limited to 'lcm')
-rwxr-xr-xlcm/docker/instance_init.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh
index 49c8633c..ceaf0b20 100755
--- a/lcm/docker/instance_init.sh
+++ b/lcm/docker/instance_init.sh
@@ -19,6 +19,7 @@ function create_database {
function migrate_database {
cd /service/vfc/gvnfm/vnflcm/lcm
python manage.py makemigrations database
+ python manage.py migrate --fake
python manage.py migrate
}