github-actions[bot]
GitHub deploy: 60e7e1d66da7f9d7c91fd38ab9673098dcf98e06
e17c2e1
raw
history blame contribute delete
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]