Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
f5c1681b
Commit
f5c1681b
authored
Feb 03, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加配置
parent
34f4aa7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
gen_config.sh
db-utils/gen_config.sh
+24
-20
No files found.
db-utils/gen_config.sh
View file @
f5c1681b
...
...
@@ -17,6 +17,8 @@ target_db_user=$5
target_db_pwd
=
$6
sync_db_name
=
$7
database_name
=
$sync_db_name
config_file_name
=
$8
port
=
""
sync_config_folder
=
~/db_sync_configs
...
...
@@ -33,69 +35,71 @@ if [ $# -ne 8 ]; then
fi
echo
"prepare to get port"
if
[[
$
sync_db
_name
=
'xyqb'
]]
;
then
if
[[
$
database
_name
=
'xyqb'
]]
;
then
# 信用钱包database
# repay v_manifest v_repay 是view类型的
# 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'
elif
[[
$
sync_db
_name
=
'xyqb_app'
]]
;
then
elif
[[
$
database
_name
=
'xyqb_app'
]]
;
then
# 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'
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'
port
=
'3308'
elif
[[
$
sync_db
_name
=
'risk_control'
]]
;
then
elif
[[
$
database
_name
=
'risk_control'
]]
;
then
# 谛听database
sys_table_list
=
'company product_strategy_dispatcher quantify_product red_packet_info socketio_init_parameters user'
port
=
'3309'
elif
[[
$
sync_db
_name
=
'dujiangyan'
]]
;
then
elif
[[
$
database
_name
=
'dujiangyan'
]]
;
then
# dujiangyan
sys_table_list
=
'baitiao_secure_key external_coopr'
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'
port
=
'3310'
elif
[[
$
sync_db
_name
=
'qinqiong'
]]
;
then
elif
[[
$
database
_name
=
'qinqiong'
]]
;
then
# qinqiong
sys_table_list
=
'secure_key secure_proxy'
port
=
'3310'
elif
[[
$
sync_db
_name
=
'quartz'
]]
;
then
elif
[[
$
database
_name
=
'quartz'
]]
;
then
# 定时任务
sys_table_list
=
'certain_time_job'
port
=
'3310'
elif
[[
$
sync_db
_name
=
'contract'
]]
;
then
elif
[[
$
database
_name
=
'contract'
]]
;
then
# 合同
sys_table_list
=
''
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'
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'
port
=
'3311'
elif
[[
$
sync_db
_name
=
'offline'
]]
;
then
elif
[[
$
database
_name
=
'offline'
]]
;
then
# 线下白条
sys_table_list
=
'goods_detail merchant operator_user'
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'
port
=
'3311'
elif
[[
$
sync_db
_name
=
'spider_center'
]]
;
then
elif
[[
$
database
_name
=
'spider_center'
]]
;
then
# 授信中心
sys_table_list
=
'merchant merchant_config'
port
=
'3312'
elif
[[
$sync_db_name
=
'xyqb_user'
]]
;
then
# xyqb_user
elif
[[
$database_name
=
'xyqb_user'
]]
;
then
# 用户中心
sys_table_list
=
'merchant_config merchant'
port
=
'3313'
elif
[[
$sync_db_name
=
'merchant'
]]
;
then
# merchant
elif
[[
$database_name
=
'merchant'
]]
;
then
# 用户中心
sys_table_list
=
'authority product_nature role role_authority role_supplier user'
port
=
'3314'
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment