mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from alembic import op
|
||||
from sqlalchemy import Inspector
|
||||
import uuid
|
||||
|
||||
|
||||
def get_existing_tables():
|
||||
@@ -7,3 +8,7 @@ def get_existing_tables():
|
||||
inspector = Inspector.from_engine(con)
|
||||
tables = set(inspector.get_table_names())
|
||||
return tables
|
||||
|
||||
|
||||
def get_revision_id():
|
||||
return str(uuid.uuid4()).replace("-", "")[:12]
|
||||
|
||||
Reference in New Issue
Block a user