forked from bot/app
🐛 数据库未进行迁移前初始化
This commit is contained in:
parent
51982b63c3
commit
ab48396db9
@ -13,7 +13,7 @@ import requests
|
||||
|
||||
from src.utils.base.config import load_from_yaml, config
|
||||
from src.utils.base.log import init_log
|
||||
from src.utils.base.data_manager import TempConfig, auto_migrate, common_db
|
||||
from src.utils.base.data_manager import TempConfig, common_db
|
||||
from git import Repo
|
||||
|
||||
|
||||
@ -53,7 +53,6 @@ def init():
|
||||
|
||||
"""
|
||||
# 检测python版本是否高于3.10
|
||||
auto_migrate()
|
||||
init_log()
|
||||
if sys.version_info < (3, 10):
|
||||
nonebot.logger.error("Requires Python3.10+ to run, please upgrade your Python Environment.")
|
||||
|
@ -68,6 +68,9 @@ def auto_migrate():
|
||||
common_db.auto_migrate(GlobalPlugin(), StoredConfig(), TempConfig())
|
||||
|
||||
|
||||
auto_migrate()
|
||||
|
||||
|
||||
def set_memory_data(key: str, value) -> None:
|
||||
"""
|
||||
设置内存数据库的数据,类似于redis
|
||||
|
Loading…
Reference in New Issue
Block a user