Commit cc27af36 authored by QA—索 文涛's avatar QA—索 文涛
parents 80dc03ca 96e22cc3
......@@ -75,6 +75,7 @@ function db_schema_sync()
echo "target infos: $target_db_host $target_db_user"
echo "database_name is : $sync_db_name"
echo "delete_business_data : $delete_business_data"
echo "run sql files : $run_sql_file"
sh $work_dir/db_gen_config.sh $source_db_host $source_db_user $source_db_pwd $target_db_host $target_db_user $target_db_pwd $database $config_file_name $db_backup_sub_folders
......@@ -112,11 +113,10 @@ then
echo "----------------------------------------------------"
echo "--- start sync $db_name---"
db_schema_sync $db_name
run_sql_file $sync_db_name
echo "--- end sync $db_name---"
echo "----------------------------------------------------"
done
echo $run_sql_file
run_sql_file
else
db_schema_sync $sync_db_name
......
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