From e3c9f30a64c61ba869064cc647c2262a9bf373f8 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 29 Jan 2019 00:39:06 +0800 Subject: [PATCH] Update qb.sql --- plugins/qbittorrent/conf/qb.sql | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/qbittorrent/conf/qb.sql b/plugins/qbittorrent/conf/qb.sql index e1b06c1df..b87fb9061 100644 --- a/plugins/qbittorrent/conf/qb.sql +++ b/plugins/qbittorrent/conf/qb.sql @@ -1,5 +1,5 @@ CREATE TABLE `pl_hash_list` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` bigint(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `info_hash` varchar(40) NOT NULL, `length` bigint(20) NOT NULL, @@ -7,4 +7,16 @@ CREATE TABLE `pl_hash_list` ( PRIMARY KEY (`id`), UNIQUE KEY `info_hash` (`info_hash`), KEY `create_time` (`create_time`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +CREATE TABLE `pl_hash_file` ( + `id` bigint(11) NOT NULL AUTO_INCREMENT, + `pid` bigint(11) NOT NULL, + `name` varchar(40) NOT NULL, + `m3u8` varchar(40) NOT NULL, + `length` bigint(20) NOT NULL, + `create_time` datetime NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `info_hash` (`info_hash`), + KEY `create_time` (`create_time`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; \ No newline at end of file