Commit 2ce40e1d authored by qa_quantgroup's avatar qa_quantgroup

update

parent 3aa29760
......@@ -16,6 +16,8 @@ if [ -n "$db_name" ];then
if [ -f $db_name.sql ];then
echo "mysql -h $mysql_host -uqa -pqatest < $db_name.sql"
mysql -h $mysql_host -uqa -pqatest < $db_name.sql
else
echo "have no $db_name.sql"
fi
else
for entry in ./*
......
......@@ -109,8 +109,11 @@ then
echo "sync all database schema"
for db_name in $database_list
do
db_schema_sync $db_name
echo $db_name
echo "----------------------------------------------------"
echo "--- start sync db_name---"
db_schema_sync $db_name
echo "--- end sync db_name---"
echo "----------------------------------------------------"
done
echo $run_sql_file
run_sql_file
......
......@@ -46,6 +46,7 @@ else
echo "没有bower,不需要执行"
fi
echo "$command"
$command
if [ $? != 0 ];then
exit -1
......
......@@ -4,4 +4,8 @@ grep "Got error: 104" log
if [ $? = 0 ];then
exit -1
fi
grep "doesn't exist" log
if [ $? = 0 ];then
exit -1
fi
echo "post_build_script_sync_db finish~"
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