update sql

This commit is contained in:
Ulric Qin 2022-10-19 12:25:50 +08:00
parent b893483d26
commit 5d4acb6cc3
1 changed files with 3 additions and 1 deletions

View File

@ -165,6 +165,7 @@ CREATE TABLE `board` (
`id` bigint unsigned not null auto_increment, `id` bigint unsigned not null auto_increment,
`group_id` bigint not null default 0 comment 'busi group id', `group_id` bigint not null default 0 comment 'busi group id',
`name` varchar(191) not null, `name` varchar(191) not null,
`ident` varchar(200) not null default '',
`tags` varchar(255) not null comment 'split by space', `tags` varchar(255) not null comment 'split by space',
`public` tinyint(1) not null default 0 comment '0:false 1:true', `public` tinyint(1) not null default 0 comment '0:false 1:true',
`create_at` bigint not null default 0, `create_at` bigint not null default 0,
@ -172,7 +173,8 @@ CREATE TABLE `board` (
`update_at` bigint not null default 0, `update_at` bigint not null default 0,
`update_by` varchar(64) not null default '', `update_by` varchar(64) not null default '',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY (`group_id`, `name`) UNIQUE KEY (`group_id`, `name`),
KEY(`ident`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
-- for dashboard new version -- for dashboard new version