fix
This commit is contained in:
1 parent
95426fc6c9
commit
3b27acc77e
3 files changed
+7
-6
No files matched your search
@@ -81,12 +81,6 @@ handle_peewee_migration()
|
||||
|
||||
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:
|
||||
engine = create_engine(
|
||||
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
|
||||
|
||||
Reference in new issue
Block a user