feat(db): 调整表结构 增加card_brand字符长度为255,新增diy_source自定义卡片品牌

This commit is contained in:
xingc
2025-04-25 17:06:22 +08:00
parent 840b2a7760
commit 5dd7910167
4 changed files with 12 additions and 5 deletions

View File

@@ -35,8 +35,8 @@ session_maker = async_sessionmaker(engine, class_=AsyncSession, expire_on_commit
async def get_async_session() -> AsyncGenerator[AsyncSession, None]:
async with session_maker() as session:
async with session.begin():
yield session
# async with session.begin():
yield session
def create_redis_pool():