mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 14:20:04 +08:00
feat✨: 数据迁移
This commit is contained in:
@@ -47,7 +47,7 @@ class TestSQL(Model):
|
||||
|
||||
async def init():
|
||||
if not bind and not any([user, password, address, port, database]):
|
||||
raise ValueError("\n数据库配置未填写.......")
|
||||
raise ValueError("\n数据库配置未填写...")
|
||||
i_bind = bind
|
||||
if not i_bind:
|
||||
i_bind = f"{sql_name}://{user}:{password}@{address}:{port}/{database}"
|
||||
|
||||
Reference in New Issue
Block a user