fix bug for failure in creating subscriptions for vnfm
[vfc/gvnfm/vnflcm.git] / lcm / docker / instance_init.sh
index e795119..b226f21 100755 (executable)
@@ -18,13 +18,8 @@ function create_database {
 
 function migrate_database {
     cd /service/vfc/gvnfm/vnflcm/lcm
-    python manage.py makemigrations database
     python manage.py migrate
 }
 
-cd /service
-if [ ! -f dbexist.txt ]; then
-    echo 1 > dbexist.txt
-    create_database
-    migrate_database
-fi
+create_database
+migrate_database