chore(#782): 清理废弃文件 init-tables.sql / routers.py / api_docs.html #785
Binary file not shown.
@@ -1,8 +0,0 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/health")
|
||||
def health():
|
||||
return {"ok": True, "service": "api"}
|
||||
@@ -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 $$;
|
||||
Reference in New Issue
Block a user