From ea88cea45df07efdfd6c9b608f9d1b4e42b8022f Mon Sep 17 00:00:00 2001 From: fitzcao Date: Mon, 13 Sep 2021 16:13:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B6=88=E6=81=AF=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96sql=20#5150?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql/1001_ci_notify_ddl_mysql.sql | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/support-files/sql/1001_ci_notify_ddl_mysql.sql b/support-files/sql/1001_ci_notify_ddl_mysql.sql index bb47d8aaa03..606e8119430 100644 --- a/support-files/sql/1001_ci_notify_ddl_mysql.sql +++ b/support-files/sql/1001_ci_notify_ddl_mysql.sql @@ -174,4 +174,36 @@ CREATE TABLE IF NOT EXISTS `T_COMMON_NOTIFY_MESSAGE_TEMPLATE` ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; +-- ---------------------------- +-- Table structure for T_NOTIFY_WEWORK +-- ---------------------------- + +CREATE TABLE IF NOT EXISTS `T_NOTIFY_WEWORK` +( + `ID` bigint primary key auto_increment, + `SUCCESS` bit(1) NOT NULL, + `RECEIVERS` text NOT NULL, + `BODY` text NOT NULL, + `LAST_ERROR` text, + `CREATED_TIME` datetime(6) DEFAULT NOW(6), + `UPDATED_TIME` datetime(6) DEFAULT NOW(6) +) ENGINE = InnoDB + DEFAULT CHARSET = utf8mb4; + +CREATE TABLE IF NOT EXISTS `T_WEWORK_NOTIFY_MESSAGE_TEMPLATE` +( + `ID` varchar(32) NOT NULL, + `COMMON_TEMPLATE_ID` varchar(32) NOT NULL, + `CREATOR` varchar(50) NOT NULL, + `MODIFIOR` varchar(50) NOT NULL, + `SENDER` varchar(128) NOT NULL DEFAULT 'DevOps', + `TITLE` varchar(256) DEFAULT NULL, + `BODY` mediumtext NOT NULL, + `CREATE_TIME` datetime(6) NOT NULL DEFAULT NOW(6), + `UPDATE_TIME` datetime(6) NOT NULL DEFAULT NOW(6), + PRIMARY KEY (`ID`), + KEY `idx_templateId` (`COMMON_TEMPLATE_ID`) +) ENGINE = InnoDB + DEFAULT CHARSET = utf8mb4; + SET FOREIGN_KEY_CHECKS = 1;