summaryrefslogtreecommitdiffstats
path: root/lcm/docker/instance_init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lcm/docker/instance_init.sh')
-rwxr-xr-xlcm/docker/instance_init.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh
index 834b8b4a..b226f219 100755
--- a/lcm/docker/instance_init.sh
+++ b/lcm/docker/instance_init.sh
@@ -18,15 +18,8 @@ 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
}
-GET_VNFM_DB="show databases like 'gvnfm';"
-VNFM_DB=`mysql -u$MYSQL_ROOT_USER -p$MYSQL_ROOT_PASSWORD -P$MYSQL_PORT -h$MYSQL_IP -e "$GET_VNFM_DB"`
-if [[ "$VNFM_DB" == "" ]]; then
- create_database
- migrate_database
-fi
-
+create_database
+migrate_database