def migrate()

in sql-proxy/migrate.py [0:0]


def migrate():
    db = app.connect_db()
    with db.connect() as conn:

        if db_type == "mssql":
            now_stmt = "SELECT getdate() as now"
        else:
            now_stmt = "SELECT NOW() as now"

        now = conn.execute(sqlalchemy.text(now_stmt)).scalar()
        print(f"Performed migration at {now}")