o k`@s$ddlmZmZmZmZddZdS))TableColumnIndexDatabaseManagerc Cs|d|dtdddtdtdtdd d td d d td td tdgf}t|\}}||D]}||q9|d|ddS)zfRename the columns `kind` and `change` in the `node_change` table for compatibity with MySQL. z:CREATE TEMPORARY TABLE nc_old AS SELECT * FROM node_changezDROP TABLE node_change node_change)revpath change_type)keyrr node_type)sizer base_pathbase_revzINSERT INTO node_change (rev,path,node_type,change_type,base_path,base_rev) SELECT rev,path,kind,change,base_path,base_rev FROM nc_oldzDROP TABLE nc_oldN)executerrrr get_connectorto_sql)envvercursortable db_connector_stmtr4/usr/lib/python3/dist-packages/trac/upgrades/db17.py do_upgrades"        rN)trac.dbrrrrrrrrrs