This commit is contained in:
aozhiwei 2020-08-31 20:34:48 +08:00
parent c9687f8bab
commit 41d262c67a
2 changed files with 46 additions and 2 deletions

View File

@ -1,6 +1,50 @@
[
{
"table_name": "version",
"where": " accountid LIKE '$channel_'"
"where": ""
},
{
"table_name": "user",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "bag",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "sign",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "quest",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "share_achievement",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "activity",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "passinfo",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "shop",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "additem_log",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "equip",
"where": "accountid LIKE '$channel_'"
},
{
"table_name": "shop_data",
"where": "accountid LIKE '$channel_'"
}
]

View File

@ -78,7 +78,7 @@ def exportMysql(context, db_conf, db_rule_conf):
for conf in db_conf:
for rule in db_rule_conf:
line = ''
if rule['where'] != '':
if rule['where'] == '':
line = 'mysqldump -h %s -P %d -u%s -p%s %s %s > %s.sql' % (
conf['host'],
conf['port'],