From 2047b1aba9e8768270e7066fa7d624c446548555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=90=8D=E5=AE=85=E3=80=82?= Date: Thu, 13 Jul 2017 22:20:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=80=E5=A4=84?= =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81=E7=9A=84=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugin.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index 2057b8c..9681c86 100644 --- a/Plugin.php +++ b/Plugin.php @@ -9,7 +9,6 @@ */ class Access_Plugin implements Typecho_Plugin_Interface { - public const VERSION = 2; public static $panel = 'Access/page/console.php'; /** From bdacba427fe6c46b931d2fa1d8a024cee7ac3d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=90=8D=E5=AE=85=E3=80=82?= Date: Thu, 13 Jul 2017 22:28:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=96=E9=94=AE=20?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=88=9B=E5=BB=BA=E8=A1=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/Mysql.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/Mysql.sql b/sql/Mysql.sql index 5dd7e47..bb0c984 100644 --- a/sql/Mysql.sql +++ b/sql/Mysql.sql @@ -32,7 +32,5 @@ CREATE TABLE `typecho_access_log` ( KEY `idx_entrypoint` (`entrypoint` ), KEY `idx_entrypoint_domain` (`entrypoint_domain`), KEY `idx_referer` (`referer` ), - KEY `idx_referer_domain` (`referer_domain` ), - CONSTRAINT `typecho_access_log_ibfk_cid` FOREIGN KEY (`content_id`) REFERENCES `typecho_contents` (`cid`) ON DELETE SET NULL ON UPDATE CASCADE, - CONSTRAINT `typecho_access_log_ibfk_mid` FOREIGN KEY (`meta_id` ) REFERENCES `typecho_metas` (`mid`) ON DELETE SET NULL ON UPDATE CASCADE + KEY `idx_referer_domain` (`referer_domain` ) ) ENGINE=InnoDB DEFAULT CHARSET=%charset%;