mirror of
https://github.com/201206030/novel.git
synced 2025-06-25 00:26:39 +00:00
更新策略优化
This commit is contained in:
17
sql/2020-01-17.sql
Normal file
17
sql/2020-01-17.sql
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
DROP TABLE IF EXISTS `book_update_time_log`;
|
||||
CREATE TABLE `book_update_time_log` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`book_cat_id` int(11) NOT NULL,
|
||||
`last_update_time` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uq_key_catid` (`book_cat_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
INSERT INTO `book_update_time_log` VALUES ('1', '1', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('2', '2', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('3', '3', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('4', '4', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('5', '5', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('6', '6', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('7', '7', NOW());
|
@ -1024,3 +1024,19 @@ CREATE TABLE `book_parse_log` (
|
||||
UNIQUE KEY `uq_key_bookurl` (`book_url`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
DROP TABLE IF EXISTS `book_update_time_log`;
|
||||
CREATE TABLE `book_update_time_log` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`book_cat_id` int(11) NOT NULL,
|
||||
`last_update_time` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uq_key_catid` (`book_cat_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
INSERT INTO `book_update_time_log` VALUES ('1', '1', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('2', '2', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('3', '3', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('4', '4', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('5', '5', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('6', '6', NOW());
|
||||
INSERT INTO `book_update_time_log` VALUES ('7', '7', NOW());
|
||||
|
Reference in New Issue
Block a user