@@ -150,7 +150,7 @@ def _getTableKeys(table):
150
150
]
151
151
return keys
152
152
153
- def handleTable (table , keys , dbname , mbDbFile , mbHost , mbPort , mbUsername , mbPassword ):
153
+ def handleTable (table , insertJson , createFk , dbname , mbDbFile , mbHost , mbPort , mbUsername , mbPassword ):
154
154
"""Handle the table including the post/pre processing."""
155
155
keys = _getTableKeys (table )
156
156
dbFile = mbDbFile if mbDbFile is not None else table + '.xml'
@@ -309,8 +309,8 @@ def handleTable(table, keys, dbname, mbDbFile, mbHost, mbPort, mbUsername, mbPas
309
309
if not args .with_post_body :
310
310
specialRules [('Posts' , 'Body' )] = 'NULL'
311
311
312
- choice = input ('This will drop the {} table. Are you sure [y/n]?' .format (table ))
312
+ choice = input ('This will drop the {} table. Are you sure [y/n]? ' .format (table ))
313
313
if len (choice ) > 0 and choice [0 ].lower () == 'y' :
314
- handleTable (table , keys , args .insert_json , args .dbname , args .file , args .host , args .port , args .username , args .password )
314
+ handleTable (table , args . insert_json , args .foreign_keys , args .dbname , args .file , args .host , args .port , args .username , args .password )
315
315
else :
316
316
six .print_ ("Cancelled." )
0 commit comments