modify scripts

This commit is contained in:
oscarz
2025-03-18 18:09:24 +08:00
parent 8abde761c6
commit 716f824144

View File

@ -19,7 +19,7 @@ tbl_name_section = 'books_sections'
# 检查 SQLite 版本
sqlite_version = sqlite3.sqlite_version_info
if sqlite_version < (3, 24, 0):
logging.warning("当前 SQLite 版本低于 3.24.0,可能不支持 ON CONFLICT 子句。")
logging.warning(f"当前 SQLite 版本低于 3.24.0,可能不支持 ON CONFLICT 子句。 {sqlite_version}")
# 获取表的列名和默认值
def get_table_columns_and_defaults(tbl_name):