Commit f5c1681b authored by daidekun's avatar daidekun

增加配置

parent 34f4aa7e
...@@ -17,6 +17,8 @@ target_db_user=$5 ...@@ -17,6 +17,8 @@ target_db_user=$5
target_db_pwd=$6 target_db_pwd=$6
sync_db_name=$7 sync_db_name=$7
database_name=$sync_db_name
config_file_name=$8 config_file_name=$8
port="" port=""
sync_config_folder=~/db_sync_configs sync_config_folder=~/db_sync_configs
...@@ -33,69 +35,71 @@ if [ $# -ne 8 ]; then ...@@ -33,69 +35,71 @@ if [ $# -ne 8 ]; then
fi fi
echo "prepare to get port" echo "prepare to get port"
if [[ $sync_db_name = 'xyqb' ]]; then if [[ $database_name = 'xyqb' ]]; then
# 信用钱包database # 信用钱包database
# repay v_manifest v_repay 是view类型的 # repay v_manifest v_repay 是view类型的
# secure_proxy 表里面的数据需要被同步 # secure_proxy 表里面的数据需要被同步
sys_table_list='baitiao_merchant baitiao_secure_key channel funding_contract funding_corp loan_product merchant_channel payeco_return_url_info red_packet t_phonenum zmxy_return_url configuration repay v_manifest v_repay secure_proxy' sys_table_list='baitiao_merchant baitiao_secure_key channel funding_contract funding_corp loan_product merchant_channel payeco_return_url_info red_packet t_phonenum zmxy_return_url configuration repay v_manifest v_repay secure_proxy'
port='3306' port='3306'
elif [[ $sync_db_name = 'xyqb_app' ]]; then elif [[ $database_name = 'xyqb_app' ]]; then
# app-backend使用的数据库 # app-backend使用的数据库
sys_table_list='activities app_banners app_config app_versions banners blanknote_entries credit_questions hot_games loan_banners loan_questions migrations sharings widgets' sys_table_list='activities app_banners app_config app_versions banners blanknote_entries credit_questions hot_games loan_banners loan_questions migrations sharings widgets'
port='3307' port='3307'
elif [[ $sync_db_name = 'payment_center' ]]; then elif [[ $database_name = 'payment_center' ]]; then
# 支付中心 # 支付中心
sys_table_list='card_switcher merchant merchant_config pay_approach_config' sys_table_list='card_switcher merchant merchant_config pay_approach_config'
port='3308' port='3308'
elif [[ $sync_db_name = 'risk_control' ]]; then elif [[ $database_name = 'risk_control' ]]; then
# 谛听database # 谛听database
sys_table_list='company product_strategy_dispatcher quantify_product red_packet_info socketio_init_parameters user' sys_table_list='company product_strategy_dispatcher quantify_product red_packet_info socketio_init_parameters user'
port='3309' port='3309'
elif [[ $sync_db_name = 'dujiangyan' ]]; then elif [[ $database_name = 'dujiangyan' ]]; then
# dujiangyan # dujiangyan
sys_table_list='baitiao_secure_key external_coopr' sys_table_list='baitiao_secure_key external_coopr'
port='3310' port='3310'
elif [[ $sync_db_name = 'mall' ]]; then elif [[ $database_name = 'mall' ]]; then
# 白条商城 # 白条商城
sys_table_list='activity_3c_product ad_detail new_3c_product supplier 3c_product 3c_product_spec apix_phone_recharge_detail apix_recharge_project apix_recharge_project_bak category configuration course_detail_info course_info merchant pay19_recharge_project product' sys_table_list='activity_3c_product ad_detail new_3c_product supplier 3c_product 3c_product_spec apix_phone_recharge_detail apix_recharge_project apix_recharge_project_bak category configuration course_detail_info course_info merchant pay19_recharge_project product'
port='3310' port='3310'
elif [[ $sync_db_name = 'qinqiong' ]]; then elif [[ $database_name = 'qinqiong' ]]; then
# qinqiong # qinqiong
sys_table_list='secure_key secure_proxy' sys_table_list='secure_key secure_proxy'
port='3310' port='3310'
elif [[ $sync_db_name = 'quartz' ]]; then elif [[ $database_name = 'quartz' ]]; then
# 定时任务 # 定时任务
sys_table_list='certain_time_job' sys_table_list='certain_time_job'
port='3310' port='3310'
elif [[ $sync_db_name = 'contract' ]]; then elif [[ $database_name = 'contract' ]]; then
# 合同 # 合同
sys_table_list='' sys_table_list=''
port='3311' port='3311'
elif [[ $sync_db_name = 'financial_system' ]]; then elif [[ $database_name = 'financial_system' ]]; then
# 财务系统 # 财务系统
sys_table_list='collection_user sys_dictionary sys_status_edge sys_status_transfer_data_record sys_status_transfer_record sys_status_vertice' sys_table_list='collection_user sys_dictionary sys_status_edge sys_status_transfer_data_record sys_status_transfer_record sys_status_vertice'
port='3311' port='3311'
elif [[ $sync_db_name = 'gyxd' ]]; then elif [[ $database_name = 'gyxd' ]]; then
# 广源小贷系统 # 广源小贷系统
sys_table_list='collection_user sys_dictionary sys_status_edge sys_status_transfer_data_record sys_status_transfer_record sys_status_vertice' sys_table_list='collection_user sys_dictionary sys_status_edge sys_status_transfer_data_record sys_status_transfer_record sys_status_vertice'
port='3311' port='3311'
elif [[ $sync_db_name = 'offline' ]]; then elif [[ $database_name = 'offline' ]]; then
# 线下白条 # 线下白条
sys_table_list='goods_detail merchant operator_user' sys_table_list='goods_detail merchant operator_user'
port='3311' port='3311'
elif [[ $sync_db_name = 'sms-center' ]]; then elif [[ $database_name = 'sms-center' ]]; then
# 线下白条 # 短信中心
sys_table_list='current_index merchant merchant_config sms_content sms_platform' sys_table_list='current_index merchant merchant_config sms_content sms_platform'
port='3311' port='3311'
elif [[ $sync_db_name = 'spider_center' ]]; then elif [[ $database_name = 'spider_center' ]]; then
# 授信中心 # 授信中心
sys_table_list='merchant merchant_config' sys_table_list='merchant merchant_config'
port='3312' port='3312'
elif [[ $sync_db_name = 'xyqb_user' ]]; then elif [[ $database_name = 'xyqb_user' ]]; then
# xyqb_user # 用户中心
sys_table_list='merchant_config merchant'
port='3313' port='3313'
elif [[ $sync_db_name = 'merchant' ]]; then elif [[ $database_name = 'merchant' ]]; then
# merchant # 用户中心
sys_table_list='authority product_nature role role_authority role_supplier user'
port='3314' port='3314'
fi fi
......
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