summaryrefslogtreecommitdiffstats
path: root/lcm/docker
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-03-28 13:20:35 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-03-28 13:20:41 +0800
commit8ae005da97061e6b1e8350793f6b67119a27cc95 (patch)
treeaade528529dd7e379ba297ea6cce5e08bc44eb52 /lcm/docker
parentc101dd9f00a74032f0ad0f1c2231b2afd37c9e9e (diff)
fix the bug of database
Change-Id: I1008ec3efa89a83ec3372cf14fbefa03b731e561 Issue-ID: VFC-1319 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'lcm/docker')
-rwxr-xr-xlcm/docker/instance_init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/docker/instance_init.sh b/lcm/docker/instance_init.sh
index 46a3db07..125896a5 100755
--- a/lcm/docker/instance_init.sh
+++ b/lcm/docker/instance_init.sh
@@ -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}'`