瀏覽代碼

core_resumption_rule_item和core_resumption_rule_point表添加排序字段

xujie 1 年之前
父節點
當前提交
1ceb9982c7
共有 1 個文件被更改,包括 20 次插入0 次删除
  1. 20 0
      project_data/sql/0.1.0/soc/soc.sql

+ 20 - 0
project_data/sql/0.1.0/soc/soc.sql

@@ -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 ;