Files
awoooi/apps/api
OG T 0f2ec7987c
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 14m42s
fix(db): 改用 inspect 跳過現有 table,根治 CrashLoopBackOff
checkfirst=True 只跳過 CREATE TABLE,SQLAlchemy 2.0 仍對
__table_args__ Index 物件發出獨立 CREATE INDEX → duplicate error。
改法:先 inspect 取得現有 tables,只對不存在的 table 呼叫
table.create(),index 永遠只隨新 table 建立,不再 duplicate。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 15:18:25 +08:00
..