<s> from migrate . versioning import api <EOL> from config import SQLALCHEMY_DATABASE_URI <EOL> from config import SQLALCHEMY_MIGRATE_REPO <EOL> from app import db <EOL> import os . path <EOL> db . create_all ( ) <EOL> if not os . path . exists ( SQLALCHEMY_MIGRATE_REPO ) : <EOL> api . create ( SQLALCHEMY_MIGRATE_REPO , '<STR_LIT>' ) <EOL> api . version_control ( SQLALCHEMY_DATABASE_URI , SQLALCHEMY_MIGRATE_REPO ) <EOL> else : <EOL> api . version_control ( SQLALCHEMY_DATABASE_URI , SQLALCHEMY_MIGRATE_REPO , <EOL> api . version ( SQLALCHEMY_MIGRATE_REPO ) ) </s>
