diff --git a/hzims-service/safeproduct/src/main/resources/db/2.0.0.sql b/hzims-service/safeproduct/src/main/resources/db/2.0.0.sql index 0ca89b4..25dfe9c 100644 --- a/hzims-service/safeproduct/src/main/resources/db/2.0.0.sql +++ b/hzims-service/safeproduct/src/main/resources/db/2.0.0.sql @@ -462,6 +462,7 @@ CREATE TABLE IF NOT EXISTS `HZIMS_HAZARD_LIBRARY` ( ) ENGINE=INNODB DEFAULT CHARSET=UTF8 COMMENT='危险源库'; ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `REF_DEPT` BIGINT(20) NOT NULL COMMENT '所属机构'; +ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` CHANGE COLUMN `REF_DEPT` `REF_DEPT` BIGINT(20) COMMENT '所属机构'; ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `REF_DEPT_NAME` VARCHAR(100) COMMENT '所属机构名称'; ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `LIBRARY_ID` BIGINT(20) COMMENT '危险源库ID'; ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `EM_CODE` VARCHAR(50) COMMENT '设备编号';