style: 规范 sql 建表语句
This commit is contained in:
parent
204f31b8eb
commit
688857e62b
|
@ -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;
|
||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue