"docs/source/Tutorial/WebUI.rst" did not exist on "d754574c0405dffd94a28ba95beff6b6ca1c440f"
Commit d51e8665 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: db

parent 068dff6a
...@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment