fix(alembic/env.py): 修复数据库更新脚本生成错误的问题
该问题是由于代码质量工具自动优化了 env.py 文件头部的未使用导入引起的。
This commit is contained in:
@@ -4,6 +4,22 @@ from sqlalchemy import engine_from_config, pool
|
|||||||
from sqlmodel import SQLModel
|
from sqlmodel import SQLModel
|
||||||
|
|
||||||
from alembic import context
|
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
|
# this is the Alembic Config object, which provides
|
||||||
# access to the values within the .ini file in use.
|
# access to the values within the .ini file in use.
|
||||||
|
|||||||
Reference in New Issue
Block a user