From e50b78db2f5e74f88b7e5c736f1fca4ca3cbe29b Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 목, 25 11월 2021 10:57:04 +0900
Subject: [PATCH] - 워크플로우 담당부서 설정 기능 추가

---
 src/main/resources/migration/V1_11__Alter_Table.sql |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/migration/V1_11__Alter_Table.sql b/src/main/resources/migration/V1_11__Alter_Table.sql
index f4f4ac6..bfb8428 100644
--- a/src/main/resources/migration/V1_11__Alter_Table.sql
+++ b/src/main/resources/migration/V1_11__Alter_Table.sql
@@ -187,3 +187,22 @@
 ALTER TABLE `issue_table_config` ADD COLUMN  `issue_id` BIGINT(20) NOT NULL;
 ALTER TABLE `issue_table_config` ADD COLUMN  `issue_table_type` INT(11) NOT NULL;
 ALTER TABLE `issue_table_config` ADD INDEX `issueTableTypeIndex`(`issue_table_type`);
+
+-- issue_risk �뀒�씠釉� 遺��꽌蹂�寃� 移댁슫�듃 而щ읆 異붽�
+ALTER TABLE `issue_risk` ADD COLUMN `change_department_count` BIGINT(20) NOT NULL DEFAULT '0';
+
+-- �썙�겕 �뵆濡쒖슦 �긽�깭 �떞�떦遺��꽌 吏��젙
+CREATE TABLE `workflow_department`(
+                                      `id` BIGINT(11) AUTO_INCREMENT,
+                                      `workflow_id` BIGINT(11),
+                                      `issue_status_id` BIGINT(11),
+                                      `department_id` BIGINT(11),
+                                      `register_id` BIGINT(20) NOT NULL,
+                                      `register_date` TIMESTAMP NULL,
+                                      `modify_id` BIGINT(20) NOT NULL,
+                                      `modify_date` TIMESTAMP NULL,
+                                      PRIMARY KEY (`id`) USING BTREE,
+                                      INDEX `workflowIdIndex` (`workflow_id`) USING BTREE,
+                                      INDEX `issueStatusIdIndex` (`issue_status_id`) USING BTREE,
+                                      INDEX `departmentIdIndex` (`department_id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
\ No newline at end of file

--
Gitblit v1.8.0