Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
2fb27adb
Commit
2fb27adb
authored
Jun 24, 2024
by
Jonathan Rohde
Browse files
feat(sqlalchemy): add missing file
parent
8f939cf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
backend/migrations/util.py
backend/migrations/util.py
+9
-0
No files found.
backend/migrations/util.py
0 → 100644
View file @
2fb27adb
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment