fix: make alembic use env var DATABASE_URL instead of hardcoded dev db

This commit is contained in:
TradeMate Dev
2026-05-14 10:24:50 +08:00
parent 5a1af9f82f
commit 4460131b71
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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