From 6512d2f0acb07b7c3a61f9ec02fe7808fb35139c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=99=AB?= Date: Fri, 20 Dec 2024 10:40:00 +0000 Subject: [PATCH] =?UTF-8?q?update=20resource/scripts/DDL.sql.=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=94=AF=E4=B8=80=E7=BA=A6=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 程序虫 --- resource/scripts/DDL.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resource/scripts/DDL.sql b/resource/scripts/DDL.sql index cc22e7c..2fe97f5 100644 --- a/resource/scripts/DDL.sql +++ b/resource/scripts/DDL.sql @@ -39,4 +39,6 @@ CREATE TABLE access_count ( `modify_by` VARCHAR(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +ALTER TABLE `access_count` ADD unique(`article_id`); +ALTER TABLE `url` ADD unique(`url`); -- Gitee