github-actions[bot]
GitHub deploy: c93a10388bee97da0bd491d6391c6b8e1412159e
cda66af
raw
history blame
216 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