<s> from sqlalchemy import Column <EOL> from sqlalchemy import MetaData <EOL> from sqlalchemy import Table <EOL> from sqlalchemy import Text <EOL> BASE_TABLE_NAME = '<STR_LIT>' <EOL> NEW_COLUMN_NAME = '<STR_LIT>' <EOL> def upgrade ( migrate_engine ) : <EOL> meta = MetaData ( ) <EOL> meta . bind = migrate_engine <EOL> for prefix in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> table = Table ( prefix + BASE_TABLE_NAME , meta , autoload = True ) <EOL> new_column = Column ( NEW_COLUMN_NAME , Text , nullable = True ) <EOL> if not hasattr ( table . c , NEW_COLUMN_NAME ) : <EOL> table . create_column ( new_column ) </s>
