From 5d4acb6cc3a40e72d06a4cfbdac37b365fc1afe6 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Wed, 19 Oct 2022 12:25:50 +0800 Subject: [PATCH] update sql --- docker/initsql/a-n9e.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/initsql/a-n9e.sql b/docker/initsql/a-n9e.sql index e098ea3f..724df9d1 100644 --- a/docker/initsql/a-n9e.sql +++ b/docker/initsql/a-n9e.sql @@ -165,6 +165,7 @@ CREATE TABLE `board` ( `id` bigint unsigned not null auto_increment, `group_id` bigint not null default 0 comment 'busi group id', `name` varchar(191) not null, + `ident` varchar(200) not null default '', `tags` varchar(255) not null comment 'split by space', `public` tinyint(1) not null default 0 comment '0:false 1:true', `create_at` bigint not null default 0, @@ -172,7 +173,8 @@ CREATE TABLE `board` ( `update_at` bigint not null default 0, `update_by` varchar(64) not null default '', PRIMARY KEY (`id`), - UNIQUE KEY (`group_id`, `name`) + UNIQUE KEY (`group_id`, `name`), + KEY(`ident`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; -- for dashboard new version