mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
10 lines
216 B
Python
10 lines
216 B
Python
|
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
|