summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-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 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}'`