github-actions[bot]
GitHub deploy: 0554cc612891bbdf2e4271ffdf6e88ceabe404e1
b7f0a53
raw
history blame contribute delete
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