v1.0.92: separate DB_* env vars instead of DATABASE_URL
This commit is contained in:
+2
-3
@@ -49,9 +49,8 @@ CREATE INDEX IF NOT EXISTS idx_runs_created
|
||||
|
||||
def init_db():
|
||||
"""Применить схему — идемпотентно, безопасно для конкурентного вызова."""
|
||||
dsn = os.getenv("DATABASE_URL", "")
|
||||
if not dsn:
|
||||
print("[DB] DATABASE_URL not set — skipping init", flush=True)
|
||||
if not os.getenv("DB_USER"):
|
||||
print("[DB] DB_USER not set — skipping init", flush=True)
|
||||
return
|
||||
|
||||
conn = get_conn()
|
||||
|
||||
Reference in New Issue
Block a user