from app.core.database import SessionLocal from sqlalchemy import text db = SessionLocal() db.execute(text("UPDATE alembic_version SET version_num = '003'")) db.commit() db.close() print("Reverted alembic version to 003")