Commit 7c89a38d authored by daidekun's avatar daidekun

run sql file

parent 6867a066
......@@ -64,6 +64,14 @@ function db_schema_sync()
$sync_cmd
}
function run_sql_file()
{
echo "run sql files on ${target_db_host}"
db_exe_cmd="db_execute_sql ${target_db_host}"
echo "${db_exe_cmd}"
$db_exe_cmd
}
database_list='xyqb xyqb_app payment_center risk_control dujiangyan mall qinqiong quartz contract financial_system gyxd offline sms-center spider_center xyqb_user merchant'
if [[ "$sync_db_name" = "all" ]]
then
......@@ -73,6 +81,8 @@ then
db_schema_sync $db_name
echo $db_name
done
run_sql_file
else
db_schema_sync $sync_db_name
run_sql_file
fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment