|
|
@@ -19,6 +19,26 @@ BEGIN
|
|
|
END IF;*/
|
|
|
|
|
|
|
|
|
+-- core_resumption_rule_item 表添加排序字段
|
|
|
+IF NOT EXISTS(SELECT *
|
|
|
+ FROM information_schema.columns
|
|
|
+ WHERE table_schema = DATABASE()
|
|
|
+ AND table_name = 'core_resumption_rule_item'
|
|
|
+ AND column_name = 'sort') THEN
|
|
|
+ALTER TABLE `core_resumption_rule_item`
|
|
|
+ ADD COLUMN `sort` int DEFAULT NULL COMMENT '排序号' AFTER `update_by`;
|
|
|
+END IF;
|
|
|
+
|
|
|
+-- core_resumption_rule_point 表添加排序字段
|
|
|
+IF NOT EXISTS(SELECT *
|
|
|
+ FROM information_schema.columns
|
|
|
+ WHERE table_schema = DATABASE()
|
|
|
+ AND table_name = 'core_resumption_rule_point'
|
|
|
+ AND column_name = 'sort') THEN
|
|
|
+ALTER TABLE `core_resumption_rule_point`
|
|
|
+ ADD COLUMN `sort` int DEFAULT NULL COMMENT '排序号' AFTER `update_by`;
|
|
|
+END IF;
|
|
|
+
|
|
|
|
|
|
END ??
|
|
|
DELIMITER ;
|