mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
🐛 : 修复插件数据迁移错误
This commit is contained in:
parent
870fa0b8b6
commit
d55d1c558c
@ -338,7 +338,9 @@ async def plugin_migration():
|
||||
elif get_block == "group":
|
||||
block_type = BlockType.GROUP
|
||||
plugin.block_type = block_type
|
||||
await PluginInfo.bulk_update(plugins, ["status", "block_type"], 10)
|
||||
await plugin.save(update_fields=["status", "block_type"])
|
||||
# TODO: tortoise.exceptions.OperationalError: syntax error at or near "ALL"
|
||||
# await PluginInfo.bulk_update(plugins, ["status", "block_type"], 10)
|
||||
plugin_file.unlink()
|
||||
logger.info("迁移插件数据完成!")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user