<s> from migrate import UniqueConstraint <EOL> from sqlalchemy import Column <EOL> from sqlalchemy import DateTime <EOL> from sqlalchemy import Index <EOL> from sqlalchemy import Integer <EOL> from sqlalchemy import MetaData <EOL> from sqlalchemy import String <EOL> from sqlalchemy import Table <EOL> from sqlalchemy import Text <EOL> def upgrade ( migrate_engine ) : <EOL> meta = MetaData ( ) <EOL> meta . bind = migrate_engine <EOL> cell_mappings = Table ( '<STR_LIT>' , meta , <EOL> Column ( '<STR_LIT>' , DateTime ) , <EOL> Column ( '<STR_LIT>' , DateTime ) , <EOL> Column ( '<STR_LIT:id>' , Integer , primary_key = True , nullable = False ) , <EOL> Column ( '<STR_LIT>' , String ( length = <NUM_LIT> ) , nullable = False ) , <EOL> Column ( '<STR_LIT:name>' , String ( length = <NUM_LIT:255> ) ) , <EOL> Column ( '<STR_LIT>' , Text ( ) ) , <EOL> Column ( '<STR_LIT>' , Text ( ) ) , <EOL> UniqueConstraint ( '<STR_LIT>' , name = '<STR_LIT>' ) , <EOL> mysql_engine = '<STR_LIT>' , <EOL> mysql_charset = '<STR_LIT:utf8>' <EOL> ) <EOL> if migrate_engine . name != '<STR_LIT>' : <EOL> Index ( '<STR_LIT>' , cell_mappings . c . uuid ) <EOL> cell_mappings . create ( checkfirst = True ) </s>
