From 7a92c0615c8f9dfba1ae26b0f4a00df8058f3cf1 Mon Sep 17 00:00:00 2001 From: LyLme Date: Sun, 27 Mar 2022 03:02:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20v1.1.3=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/update1.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 install/update1.sql diff --git a/install/update1.sql b/install/update1.sql new file mode 100644 index 0000000..2d434de --- /dev/null +++ b/install/update1.sql @@ -0,0 +1,17 @@ +INSERT INTO `lylme_config` VALUES ('template', 'default','网站模板'); +INSERT INTO `lylme_config` VALUES ('cdnpublic', NULL,'CDN地址'); +INSERT INTO `lylme_config` VALUES ('apply', 0,'收录申请'); +CREATE TABLE `lylme_apply` ( + `apply_id` int(4) NOT NULL, + `apply_name` varchar(20) NOT NULL, + `apply_url` varchar(255) NOT NULL, + `apply_group` int(2) NOT NULL, + `apply_icon` text NOT NULL, + `apply_mail` varchar(30) NOT NULL, + `apply_time` datetime NOT NULL, + `apply_status` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='收录申请'; +ALTER TABLE `lylme_apply` ADD PRIMARY KEY (`apply_id`); +ALTER TABLE `lylme_apply` MODIFY `apply_id` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; +COMMIT; +UPDATE `lylme_config` SET `v` = 'v1.1.3' WHERE `lylme_config`.`k` = 'version'; \ No newline at end of file