@@ -150,7 +150,7 @@ def _getTableKeys(table):
150150 ]
151151 return keys
152152
153- def handleTable (table , keys , dbname , mbDbFile , mbHost , mbPort , mbUsername , mbPassword ):
153+ def handleTable (table , insertJson , createFk , dbname , mbDbFile , mbHost , mbPort , mbUsername , mbPassword ):
154154 """Handle the table including the post/pre processing."""
155155 keys = _getTableKeys (table )
156156 dbFile = mbDbFile if mbDbFile is not None else table + '.xml'
@@ -309,8 +309,8 @@ def handleTable(table, keys, dbname, mbDbFile, mbHost, mbPort, mbUsername, mbPas
309309 if not args .with_post_body :
310310 specialRules [('Posts' , 'Body' )] = 'NULL'
311311
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 ))
313313if 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 )
315315else :
316316 six .print_ ("Cancelled." )
0 commit comments