Archived
修复了无法使用MySQL数据库的bug, 现已正式支持MySQL数据库
This commit is contained in:
3 files changed
+25
-22
No files matched your search
@@ -6,4 +6,12 @@
|
||||
# @File Name: __init__.py
|
||||
|
||||
|
||||
__all__ = ['error', 'logger', 'packing_logs', 'view']
|
||||
import os
|
||||
from bin.utils.logger import logger
|
||||
from bin.utils.settings import Settings
|
||||
|
||||
if __name__ != '__main__':
|
||||
if Settings().type == 'MySQL' and not os.path.exists('./bin/db/origin.sql'):
|
||||
logger.info('当前使用的数据库为MySQL请前往 https://themedatabase.vercel.app/source/sql 下载sql文件')
|
||||
logger.info('并使用 source 命令来导入MySQL数据库')
|
||||
logger.info('忽略此消息请在./bin/db内创建一个名为origin.sql的文件')
|
||||
Reference in New Issue
Block a user