Module Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Import alias Import alias Import alias Import alias Assign NameStore Str If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Str If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index NameLoad ListLoad body Delete SubscriptDel NameLoad Index NameLoad Print NameLoad Print NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Str For NameStore NameLoad body For NameStore SubscriptLoad NameLoad Index NameLoad body Print BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str handlers ExceptHandler body Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Index Num attr Str Index Num attr Print BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Print BinOpAdd BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Print BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Print NameLoad AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Print NameLoad
N/A N/A user root N/A passwd password N/A new_db sahana N/A old_db old N/A os N/A sys N/A subprocess N/A MySQLdb N/A config /root/.my.cnf N/A N/A N/A os access config N/A os R_OK N/A N/A f N/A open config r N/A lines N/A N/A f readlines N/A N/A N/A f close N/A line lines N/A N/A findstring password= N/A N/A findstring line N/A N/A passwd N/A N/A N/A N/A line replace findstring strip N/A db1 N/A N/A MySQLdb connection host localhost user user passwd passwd db new_db N/A db2 N/A N/A MySQLdb connection host localhost user user passwd passwd db old_db tablelist N/A N/A db N/A N/A N/A N/A N/A db query SHOW TABLES; N/A r N/A N/A db store_result N/A tables N/A N/A row N/A N/A r fetch_row 300 N/A N/A N/A N/A tables append N/A row N/A 0 N/A tables N/A tablestruct N/A N/A db N/A N/A N/A tablestruct N/A N/A tables N/A tablelist db N/A table tables N/A N/A N/A N/A db query N/A describe %s; table N/A r N/A N/A db store_result N/A structure N/A N/A row N/A N/A r fetch_row 100 N/A N/A N/A N/A structure append N/A row N/A 0 N/A N/A tablestruct N/A table structure N/A tablestruct N/A N/A struct1 N/A tablestruct db1 N/A struct2 N/A tablestruct db2 N/A tables_to_delete N/A N/A fields_to_delete N/A N/A key struct2 N/A N/A N/A fields_to_delete N/A key N/A N/A N/A N/A fields1 N/A struct1 N/A key N/A fields2 N/A struct2 N/A key N/A field fields2 N/A N/A N/A N/A N/A N/A fields1 index field N/A N/A N/A N/A N/A N/A N/A fields_to_delete N/A key append field N/A N/A N/A N/A N/A N/A tables_to_delete append key N/A table N/A N/A fields_to_delete keys N/A N/A N/A N/A fields_to_delete N/A table N/A N/A N/A N/A fields_to_delete N/A table N/A tables_to_delete N/A fields_to_delete N/A table tables_to_delete N/A N/A N/A N/A db2 query SET FOREIGN_KEY_CHECKS = 0; N/A N/A N/A db2 query N/A DROP TABLE %s; table N/A N/A N/A db2 query SET FOREIGN_KEY_CHECKS = 1; N/A problems N/A filename /root/mysql.status N/A table fields_to_delete N/A N/A field N/A fields_to_delete N/A table N/A N/A N/A N/A N/A N/A ALTER TABLE ` table ` DROP ` field ` ; N/A N/A N/A db2 query SET FOREIGN_KEY_CHECKS = 0; N/A N/A N/A N/A N/A db2 query N/A N/A N/A N/A ALTER TABLE ` table ` DROP  ` field ` ; N/A N/A N/A N/A N/A Table %s has a field %s with a FK constraint N/A table field N/A cmd N/A mysql -e 'show innodb status;' > %s filename N/A N/A N/A subprocess call cmd shell True N/A N/A N/A os access filename N/A os R_OK N/A N/A f N/A open filename r N/A lines N/A N/A f readlines N/A N/A N/A f close N/A fk N/A N/A N/A N/A N/A N/A N/A N/A N/A lines N/A 1 split CONSTRAINT N/A 1 split FOREIGN N/A 0 strip N/A N/A N/A N/A N/A ALTER TABLE ` table ` DROP FOREIGN KEY ` fk `; N/A N/A N/A N/A N/A db2 query N/A N/A N/A N/A ALTER TABLE ` table ` DROP FOREIGN KEY ` fk `; N/A N/A N/A N/A N/A MySQLdb OperationalError N/A N/A e N/A N/A N/A sys exc_info N/A 1 N/A N/A N/A Failed to remove FK %s from table %s N/A fk table N/A e message N/A N/A N/A N/A N/A ALTER TABLE ` table ` DROP ` field ` ; N/A N/A N/A N/A N/A db2 query N/A N/A N/A N/A ALTER TABLE ` table ` DROP  ` field ` ; N/A N/A N/A N/A N/A MySQLdb OperationalError N/A N/A e N/A N/A N/A sys exc_info N/A 1 N/A message N/A N/A Failed to drop field %s from table %s N/A field table N/A e message N/A message N/A problems message N/A N/A N/A db2 query SET FOREIGN_KEY_CHECKS = 1; N/A problems