open-renamer/openRenamerBackend/sqls/v004_新增记录表.sql
2023-01-31 23:06:08 +08:00

19 lines
578 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 记录已处理过的路径
CREATE TABLE dealed_file_path (
key_str TEXT(32) NOT NULL,
"path" TEXT(200) NOT NULL,
CONSTRAINT dealed_file_path_PK PRIMARY KEY (key_str)
);
CREATE TABLE auto_deal_history (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
createTime INTEGER NOT NULL,
oldName TEXT(200) NOT NULL,
newName TEXT(200) NOT NULL,
-- 说明
comment TEXT(200) NOT NULL,
-- 1:文件重命名2剧集下无季文件夹自动创建;3:操作失败
"type" INTEGER NOT NULL
);
CREATE INDEX auto_deal_history_createTime_IDX ON auto_deal_history (createTime);