diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-03-28 13:16:23 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-03-28 13:16:30 +0800 |
commit | 63d04bbd33ec57ef79c36f96abea5f6a35d0e739 (patch) | |
tree | f3b0763043b92ec9fe8f819790dd07bebe14e72e /docker | |
parent | 29e144cd80a0d9499561ea32c52d5502c6120189 (diff) |
fix the bug of database
Change-Id: I0263eb86928eb331bb14bb8318c6777ab0447139
Issue-ID: VFC-1319
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/instance_init.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/instance_init.sh b/docker/instance_init.sh index 7226e16c..de4175b3 100755 --- a/docker/instance_init.sh +++ b/docker/instance_init.sh @@ -40,7 +40,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='vfcnfvolcm';"` tab3=`echo $tab2|awk '{print $2}'` |