fix: make alembic use env var DATABASE_URL instead of hardcoded dev db
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@
|
||||
script_location = alembic
|
||||
prepend_sys_path = .
|
||||
version_path_separator = os
|
||||
sqlalchemy.url = postgresql+asyncpg://tradmate:tradmate@localhost:5432/tradmate
|
||||
# 生产环境数据库
|
||||
sqlalchemy.url = postgresql+asyncpg://foreign_trade:dWFNi67nHNbPbjmP@localhost:5432/foreign_trade
|
||||
|
||||
[loggers]
|
||||
keys = root,sqlalchemy,alembic
|
||||
|
||||
Reference in New Issue
Block a user