github-actions[bot]
GitHub deploy: 43c5a8493f67dda18bcb4fd979accc2510db9d14
e6665e0
raw
history blame
309 Bytes
from alembic import op
from sqlalchemy import Inspector
def get_existing_tables():
con = op.get_bind()
inspector = Inspector.from_engine(con)
tables = set(inspector.get_table_names())
return tables
def get_revision_id():
import uuid
return str(uuid.uuid4()).replace("-", "")[:12]