From 21cb4ee8c1a67ce33502f83ec6102bb139064e15 Mon Sep 17 00:00:00 2001 From: MangoFanFanw Date: Wed, 27 May 2026 15:44:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(alembic/env.py):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E7=94=9F=E6=88=90=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 该问题是由于代码质量工具自动优化了 env.py 文件头部的未使用导入引起的。 --- alembic/env.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/alembic/env.py b/alembic/env.py index ba1cca0..04fa3cc 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -4,6 +4,22 @@ from sqlalchemy import engine_from_config, pool from sqlmodel import SQLModel from alembic import context +from nyahome.database import ( # noqa + AiiModel, + AiiModelPublic, + AiiProvider, + AiiProviderPublic, + Chatroom, + ChatroomChat, + ChatroomChatAccept, + ChatroomChatDelete, + ChatroomChatEdit, + ChatroomPublic, + ChatScript, + ModelUploadFile, + ModelUser, + ScriptTemplate, +) # this is the Alembic Config object, which provides # access to the values within the .ini file in use.