From 75b448742603b53f3d622d00f03400110e96f1c9 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Thu, 29 Aug 2024 15:44:51 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=90=AF=E5=8A=A8sql=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hzims-service/safeproduct/src/main/resources/db/3.0.1.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hzims-service/safeproduct/src/main/resources/db/3.0.1.sql b/hzims-service/safeproduct/src/main/resources/db/3.0.1.sql index aeaa677..cb030a9 100644 --- a/hzims-service/safeproduct/src/main/resources/db/3.0.1.sql +++ b/hzims-service/safeproduct/src/main/resources/db/3.0.1.sql @@ -1,4 +1,4 @@ -CREATE TABLE `hzims_institutional_information` ( +CREATE TABLE IF NOT EXISTS `hzims_institutional_information` ( `ID` bigint(20) NOT NULL COMMENT '主键ID', `STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码', `STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', @@ -22,7 +22,7 @@ CREATE TABLE `hzims_institutional_information` ( ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -CREATE TABLE `hzims_rectification_supervision` ( +CREATE TABLE IF NOT EXISTS `hzims_rectification_supervision` ( `ID` bigint(20) NOT NULL COMMENT '主键ID', `STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码', `STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', @@ -49,7 +49,7 @@ CREATE TABLE `hzims_rectification_supervision` ( PRIMARY KEY (`ID`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -CREATE TABLE `hzims_safety_train` ( +CREATE TABLE IF NOT EXISTS `hzims_safety_train` ( `ID` bigint(20) NOT NULL COMMENT '主键ID', `STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码', `STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', @@ -76,7 +76,7 @@ CREATE TABLE `hzims_safety_train` ( PRIMARY KEY (`ID`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -CREATE TABLE `hzims_violation_assessment` ( +CREATE TABLE IF NOT EXISTS `hzims_violation_assessment` ( `ID` bigint(20) NOT NULL COMMENT '主键ID', `STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码', `STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称',