From c6877c2b4a0422959500a878cd73e674e3e66b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BE=E5=87=A0=E6=B5=B7?= Date: Sat, 1 Aug 2020 12:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0unique=E7=BA=A6=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog.sql b/blog.sql index a1cd130..f7a49f2 100644 --- a/blog.sql +++ b/blog.sql @@ -75,7 +75,7 @@ CREATE TABLE `links` `l_id` bigint(20) primary key auto_increment, `l_name` varchar(255) COLLATE utf8mb4_unicode_ci not null comment '友站名称', `l_is_open` boolean default true comment '是否公开', - `l_url` varchar(255) not null comment '首页地址', + `l_url` varchar(255) unique not null comment '首页地址', `l_icon_path` varchar(255) not null comment '友链的icon地址', `l_desc` varchar(255) COLLATE utf8mb4_unicode_ci not null comment '友链的说明描述', `is_delete` boolean not null default false comment '该数据是否被删除',