feat: 添加 WebUI 迁移助手以及相关迁移方法 (#2477)

This commit is contained in:
Soulter
2025-08-17 23:24:30 +08:00
committed by GitHub
parent 1df49d1d6f
commit e95ad4049b
14 changed files with 415 additions and 28 deletions
-6
View File
@@ -34,7 +34,6 @@ from astrbot.core.platform_message_history_mgr import PlatformMessageHistoryMana
from astrbot.core.astrbot_config_mgr import AstrBotConfigManager
from astrbot.core.star.star_handler import star_handlers_registry, EventType
from astrbot.core.star.star_handler import star_map
from astrbot.core.db.migration.helper import do_migration_v4
class AstrBotCoreLifecycle:
@@ -72,11 +71,6 @@ class AstrBotCoreLifecycle:
await self.db.initialize()
try:
await do_migration_v4(self.db, {}, self.astrbot_config)
except Exception as e:
logger.error(f"迁移到 v4.0.0 新版本数据格式失败: {e}")
# 初始化 AstrBot 配置管理器
self.astrbot_config_mgr = AstrBotConfigManager(
default_config=self.astrbot_config, sp=sp