<s> """<STR_LIT>""" <EOL> revision = '<STR_LIT>' <EOL> down_revision = '<STR_LIT>' <EOL> from alembic import op <EOL> from sqlalchemy . engine import reflection <EOL> from neutron . db import migration <EOL> TABLE_NAME = '<STR_LIT>' <EOL> def upgrade ( ) : <EOL> inspector = reflection . Inspector . from_engine ( op . get_bind ( ) ) <EOL> fk_constraints = inspector . get_foreign_keys ( TABLE_NAME ) <EOL> for fk in fk_constraints : <EOL> fk [ '<STR_LIT>' ] [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> migration . remove_foreign_keys ( TABLE_NAME , fk_constraints ) <EOL> migration . create_foreign_keys ( TABLE_NAME , fk_constraints ) </s>
