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
d51e8665
"docs/source/Tutorial/WebUI.rst" did not exist on "d754574c0405dffd94a28ba95beff6b6ca1c440f"
Commit
d51e8665
authored
Jul 07, 2024
by
Timothy J. Baek
Browse files
fix: db
parent
068dff6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
backend/apps/webui/internal/db.py
backend/apps/webui/internal/db.py
+7
-0
No files found.
backend/apps/webui/internal/db.py
View file @
d51e8665
...
@@ -80,6 +80,13 @@ handle_peewee_migration()
...
@@ -80,6 +80,13 @@ handle_peewee_migration()
SQLALCHEMY_DATABASE_URL
=
DATABASE_URL
SQLALCHEMY_DATABASE_URL
=
DATABASE_URL
# Replace the postgres:// with postgresql://
if
"postgres://"
in
SQLALCHEMY_DATABASE_URL
:
SQLALCHEMY_DATABASE_URL
=
SQLALCHEMY_DATABASE_URL
.
replace
(
"postgres://"
,
"postgresql://"
)
if
"sqlite"
in
SQLALCHEMY_DATABASE_URL
:
if
"sqlite"
in
SQLALCHEMY_DATABASE_URL
:
engine
=
create_engine
(
engine
=
create_engine
(
SQLALCHEMY_DATABASE_URL
,
connect_args
=
{
"check_same_thread"
:
False
}
SQLALCHEMY_DATABASE_URL
,
connect_args
=
{
"check_same_thread"
:
False
}
...
...
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