|
|
@@ -597,10 +597,29 @@ END IF;
|
|
|
WHERE table_schema = DATABASE()
|
|
|
AND table_name = 'core_resumption_plan_to_point'
|
|
|
AND column_name = 'validate_date') THEN
|
|
|
- ALTER TABLE `soc`.`core_resumption_plan_to_point`
|
|
|
+ ALTER TABLE `core_resumption_plan_to_point`
|
|
|
ADD COLUMN `effective_date` date NULL COMMENT '生效日期。不为null';
|
|
|
UPDATE core_resumption_plan_to_point set effective_date='2000-01-01';
|
|
|
END IF;
|
|
|
+
|
|
|
+
|
|
|
+ IF NOT EXISTS(SELECT *
|
|
|
+ FROM information_schema.columns
|
|
|
+ WHERE table_schema = DATABASE()
|
|
|
+ AND table_name = 'sys_org_physical_defense_construction'
|
|
|
+ AND column_name = 'date_of_complete') THEN
|
|
|
+ ALTER TABLE `sys_org_physical_defense_construction`
|
|
|
+ ADD COLUMN `date_of_complete` datetime NULL DEFAULT NULL COMMENT '计划达标日期';
|
|
|
+ END IF;
|
|
|
+
|
|
|
+ IF NOT EXISTS(SELECT *
|
|
|
+ FROM information_schema.columns
|
|
|
+ WHERE table_schema = DATABASE()
|
|
|
+ AND table_name = 'sys_org_physical_defense_construction'
|
|
|
+ AND column_name = 'reason') THEN
|
|
|
+ ALTER TABLE `sys_org_physical_defense_construction`
|
|
|
+ ADD COLUMN `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '未达标原因';
|
|
|
+ END IF;
|
|
|
|
|
|
|
|
|
|