<s> """<STR_LIT>""" <EOL> from sqlalchemy import Column <EOL> from sqlalchemy import Index <EOL> from sqlalchemy import MetaData <EOL> from sqlalchemy import String <EOL> from sqlalchemy import Table <EOL> def upgrade ( migrate_engine ) : <EOL> meta = MetaData ( ) <EOL> meta . bind = migrate_engine <EOL> for table_prefix in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> uuid_column = Column ( '<STR_LIT>' , String ( <NUM_LIT> ) ) <EOL> aggregates = Table ( '<STR_LIT>' % table_prefix , meta ) <EOL> if not hasattr ( aggregates . c , '<STR_LIT>' ) : <EOL> aggregates . create_column ( uuid_column ) <EOL> if not table_prefix : <EOL> index = Index ( '<STR_LIT>' , aggregates . c . uuid ) <EOL> index . create ( ) </s>
