style: 规范 sql 建表语句

This commit is contained in:
CaptainB 2022-02-07 18:33:29 +08:00 committed by 刘瑞斌
parent 204f31b8eb
commit 688857e62b
2 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,8 @@ CREATE TABLE IF NOT EXISTS `project_version`
PRIMARY KEY (`id`),
KEY `project_version_project_id_index` (`project_id`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
DEFAULT CHARSET = utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE project
ADD version_enable TINYINT(1) DEFAULT 1 NULL;

View File

@ -1,4 +1,5 @@
CREATE TABLE IF NOT EXISTS message_task (
CREATE TABLE IF NOT EXISTS message_task
(
id varchar(50) NOT NULL,
type varchar(50) NOT NULL COMMENT '消息类型',
event varchar(255) NOT NULL COMMENT '通知事件类型',
@ -9,4 +10,5 @@ CREATE TABLE IF NOT EXISTS message_task (
PRIMARY KEY (id)
)
ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
DEFAULT CHARSET = utf8mb4
COLLATE utf8mb4_general_ci;