fix the bug of database 49/83549/1
authoryangyan <yangyanyj@chinamobile.com>
Thu, 28 Mar 2019 05:20:35 +0000 (13:20 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Thu, 28 Mar 2019 05:20:41 +0000 (13:20 +0800)
Change-Id: I1008ec3efa89a83ec3372cf14fbefa03b731e561
Issue-ID: VFC-1319
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
lcm/docker/instance_init.sh

index 46a3db0..125896a 100755 (executable)
@@ -44,7 +44,7 @@ function create_database {
        echo $tab1
        echo "============"
         echo "TABLE NOT EXISTS, START MIGRATE"
-        python $man_path/manage.py makemigrations && python $man_path/manage.py migrate &
+        python $man_path/manage.py makemigrations database && python $man_path/manage.py migrate &
         wait
         tab2=`mysql -u${MYSQL_USER} -p${MYSQL_ROOT_PASSWORD} -P${MYSQL_PORT} -h${MYSQL_IP} -e "SELECT count(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='gvnfm';"`
        tab3=`echo $tab2|awk '{print $2}'`