aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-03-28 13:21:52 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-03-28 13:21:58 +0800
commit99883e3fc3928113047255783b0979f856bb723a (patch)
tree12bc07bb12cc7a5d1ec3ef443fb58aae144f7ebc
parent9737bb0c33deae190beff671fb35132ab4934b12 (diff)
fix the bug of database
Change-Id: I49130ce16525dd17a6696c3548098ffe6319e210 Issue-ID: VFC-1319 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-xdocker/instance_init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/instance_init.sh b/docker/instance_init.sh
index 4ead7670..6e51cc17 100755
--- a/docker/instance_init.sh
+++ b/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='nfvocatalog';"`
tab3=`echo $tab2|awk '{print $2}'`