<s> from trac . db import Table , Column , DatabaseManager <EOL> def do_upgrade ( env , ver , cursor ) : <EOL> """<STR_LIT>""" <EOL> table = Table ( '<STR_LIT>' , key = '<STR_LIT:id>' ) [ <EOL> Column ( '<STR_LIT:id>' ) , <EOL> Column ( '<STR_LIT>' , type = '<STR_LIT:int>' ) <EOL> ] <EOL> db_connector , _ = DatabaseManager ( env ) . get_connector ( ) <EOL> for stmt in db_connector . to_sql ( table ) : <EOL> cursor . execute ( stmt ) </s>
