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
fc434953
Commit
fc434953
authored
Dec 04, 2017
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
traffic_distribution
parent
db8a104a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
db_gen_config.sh
db-utils/db_gen_config.sh
+1
-1
db_schema_sync.sh
db-utils/db_schema_sync.sh
+1
-1
No files found.
db-utils/db_gen_config.sh
View file @
fc434953
...
@@ -138,7 +138,7 @@ elif [[ $database_name = 'user_credit' ]]; then
...
@@ -138,7 +138,7 @@ elif [[ $database_name = 'user_credit' ]]; then
port
=
'9001'
port
=
'9001'
elif
[[
$database_name
=
'traffic_distribution'
]]
;
then
elif
[[
$database_name
=
'traffic_distribution'
]]
;
then
# user_credit
# user_credit
sys_table_list
=
''
sys_table_list
=
'
merchant merchant_carousel merchant_credit merchant_detail merchant_section merchant_sort ppdai_exclude_channel t_module t_module_role t_role t_user t_user_role traffic_channel_banner_ids traffic_channel_ids traffic_channel_sort traffic_infos
'
source_db_host
=
'192.168.3.36'
source_db_host
=
'192.168.3.36'
port
=
'3313'
port
=
'3313'
elif
[[
$database_name
=
'notify'
]]
;
then
elif
[[
$database_name
=
'notify'
]]
;
then
...
...
db-utils/db_schema_sync.sh
View file @
fc434953
...
@@ -117,7 +117,7 @@ function run_sql_file()
...
@@ -117,7 +117,7 @@ function run_sql_file()
sh
$work_dir
/db_execute_sql.sh
$target_db_host
$sync_db_name
sh
$work_dir
/db_execute_sql.sh
$target_db_host
$sync_db_name
}
}
database_list
=
'mall cash_loan_flow contract dujiangyan financial_system financial_system_api fund_manage gyxd merchant notify offline payment_center qinqiong quartz redpacket risk_control silk_road spider_center user_credit xyqb xyqb_app xyqb_btzt xyqb_user'
database_list
=
'mall cash_loan_flow contract dujiangyan financial_system financial_system_api fund_manage gyxd merchant notify offline payment_center qinqiong quartz redpacket risk_control silk_road spider_center
traffic_distribution
user_credit xyqb xyqb_app xyqb_btzt xyqb_user'
if
[[
"
$sync_db_name
"
=
"all"
]]
if
[[
"
$sync_db_name
"
=
"all"
]]
then
then
...
...
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