From 74841dab136f2c0a13b16530ed61008bd94a13ee Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 23 Jul 2026 22:08:45 +0800 Subject: [PATCH] =?UTF-8?q?chore(#782):=20=E6=B8=85=E7=90=86=E5=BA=9F?= =?UTF-8?q?=E5=BC=83=E6=96=87=E4=BB=B6=20init-tables.sql=20/=20routers.py?= =?UTF-8?q?=20/=20api=5Fdocs.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #782 删除3个确认废弃的文件: - init-tables.sql — 已被SQLAlchemy models和Alembic迁移工具取代 - apps/api/routers.py — 旧版路由文件,主入口已改用app/api/router.py - api_docs.html — 旧版静态API文档,已被FastAPI自动生成的/docs取代 --- api_docs.html | Bin 2026 -> 0 bytes apps/api/routers.py | 8 -------- init-tables.sql | 14 -------------- 3 files changed, 22 deletions(-) delete mode 100644 api_docs.html delete mode 100644 apps/api/routers.py delete mode 100644 init-tables.sql diff --git a/api_docs.html b/api_docs.html deleted file mode 100644 index 1455f4942c2de28b181121f3bb51d9f2e28a2709..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2026 zcmchYPjAye5XI+=g!l?>I21%}0}>ZhDro5esS=3L0|G>y#7#_7CyJef3c-<&4gB6Z zY1U2?^@ObK+B^T=yqTT+{d32H#j|fa_S)Xsk$td__RfwuA6RLZHnaot^){WRmRPT$ zdub^?5`5*X`g&n4n_0%&+{QMt3Gx>5F7G+-savHrN2|xl0Gl4?vg)#jo@5Wp42ulC zj0i)d1zLJjtS1)PV|>*!7&@B^Y)iWWMTJVSzjG2}U+@UkgtMW;TsU2MEkKm=RJaFD z=iKRtnG%16J;#gu^uQL`H%^p+;?B^IIF)_OK8BST`5erBo)md#Q#3jK|3O+5hwDaJTlfkyDX}Dsj3ln z(r(s4eo9xV1H1S6*YCjE*d?riy`l%-u!sEGHFg3!MY2y6-`?-g*i~q~8#|!vQSmxg zVtGasb({L`rdl+S$F4TBh9`C21V3Yt1^AipEsy`dFGA~3;~bRg*s24SgIM!X)|uFW zZSj59U|f73dj8HFTLo(lqjPpuJ0bHSYsbY5kmN{oe^d4`5_PvK8gAjuM^tsEIxlcH zB7n_iH#D(5upi#ET28kqwHR_M1KWjx5ok1Lmi?^zDYUz`=h?PkPhI`hbwJH6&n(^>r`Oc8mHkSAzVm?FM)6Z%do zuty8#rLXC#8myv(&c7e0UWu`ji^CFI<@(91)3V0(Dbef;%^+p5^b!$Y)2yh~{Id|Jl%Qj7f49(p-#zo#*G?50Vkxwrn0eHXv~0PIvlcmMzZ diff --git a/apps/api/routers.py b/apps/api/routers.py deleted file mode 100644 index 07342c457..000000000 --- a/apps/api/routers.py +++ /dev/null @@ -1,8 +0,0 @@ -from fastapi import APIRouter - -router = APIRouter() - - -@router.get("/health") -def health(): - return {"ok": True, "service": "api"} diff --git a/init-tables.sql b/init-tables.sql deleted file mode 100644 index 07aeec681..000000000 --- a/init-tables.sql +++ /dev/null @@ -1,14 +0,0 @@ --- Deprecated schema snapshot. --- --- Runtime schema creation is currently owned by SQLAlchemy models in: --- packages/adapters/sqlalchemy_impl/models.py --- --- Do not apply this file to staging or production. It is retained only for --- historical reference while the project migrates toward a proper Alembic flow. --- Applying it would create columns such as assets.library_id/storage_key/mime_type --- that conflict with the current runtime table shape. - -DO $$ -BEGIN - RAISE EXCEPTION 'init-tables.sql is deprecated. Use SQLAlchemy runtime schema initialization / future Alembic migrations instead.'; -END $$; -- 2.54.0