<s> from migrate . versioning import api <EOL> from config import SQLALCHEMY_DATABASE_URI <EOL> from config import SQLALCHEMY_MIGRATE_REPO <EOL> v = api . db_version ( SQLALCHEMY_DATABASE_URI , SQLALCHEMY_MIGRATE_REPO ) <EOL> api . downgrade ( SQLALCHEMY_DATABASE_URI , SQLALCHEMY_MIGRATE_REPO , v - <NUM_LIT:1> ) <EOL> v = api . db_version ( SQLALCHEMY_DATABASE_URI , SQLALCHEMY_MIGRATE_REPO ) <EOL> print ( '<STR_LIT>' + str ( v ) ) </s>
