From d3c662dfcd180602c5740837e0cecb51e78d4cb4 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 화, 16 11월 2021 17:16:56 +0900
Subject: [PATCH] - 이슈관리 업체,ISP,호스팅 추가 완료 - 프로젝트 부서담당자 백엔드 추가 * db날리고 실행

---
 src/main/resources/migration/V1_1__Initial_Setup.sql |   52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 51 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/migration/V1_1__Initial_Setup.sql b/src/main/resources/migration/V1_1__Initial_Setup.sql
index 6dc56c9..54b934e 100644
--- a/src/main/resources/migration/V1_1__Initial_Setup.sql
+++ b/src/main/resources/migration/V1_1__Initial_Setup.sql
@@ -80,6 +80,9 @@
     `project_id` bigint(20) DEFAULT NULL,
     `priority_id` bigint(20) DEFAULT NULL,
     `severity_id` bigint(20) DEFAULT NULL,
+    `company_id` bigint(20) DEFAULT NULL,
+    `hosting_id` bigint(20) DEFAULT NULL,
+    `isp_id` bigint(20) DEFAULT NULL,
     `title` varchar(300) DEFAULT NULL,
     `description` mediumtext COMMENT 'description',
     `reverse_index` bigint(20) DEFAULT NULL,
@@ -303,7 +306,7 @@
 -- �뀒�씠釉� owl_en_1.5.issue_user 援ъ“ �궡蹂대궡湲�
 CREATE TABLE IF NOT EXISTS `issue_user` (
     `id` bigint(20) NOT NULL AUTO_INCREMENT,
-    `user_id` bigint(20) NOT NULL,
+    `user_id` bigint(20) NULL,
     `issue_id` bigint(20) NOT NULL,
     `workspace_id` bigint(20) NOT NULL,
     `register_id` bigint(20) NOT NULL,
@@ -315,6 +318,23 @@
     KEY `issueIdIndex` (`issue_id`),
     KEY `workspaceIdIndex` (`workspace_id`),
     KEY `userIdIndex` (`user_id`)
+    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- �뀒�씠釉� owl_en_1.5.issue_department 援ъ“ �궡蹂대궡湲�
+CREATE TABLE IF NOT EXISTS `issue_department` (
+    `id` bigint(20) NOT NULL AUTO_INCREMENT,
+    `department_id` bigint(20) NOT NULL,
+    `issue_id` bigint(20) NOT NULL,
+    `workspace_id` bigint(20) NOT NULL,
+    `register_id` bigint(20) NOT NULL,
+    `modify_id` bigint(20) NOT NULL,
+    `register_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+    `modify_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
+    PRIMARY KEY (`id`),
+    KEY `departmentIdAndIssueIdIndex` (`department_id`,`issue_id`),
+    KEY `issueIdIndex` (`issue_id`),
+    KEY `workspaceIdIndex` (`workspace_id`),
+    KEY `departmentIdIndex` (`department_id`)
     ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 -- �뀒�씠釉� �뜲�씠�꽣 owl_en_1.5.issue_user:~0 rows (���왂�쟻) �궡蹂대궡湲�
@@ -521,6 +541,36 @@
     KEY `projectRoleIdIndex` (`project_role_id`)
     ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
+-- �뀒�씠釉� owl_en_1.5.project_role_department 援ъ“ �궡蹂대궡湲�
+CREATE TABLE IF NOT EXISTS `project_role_department` (
+    `id` bigint(20) NOT NULL AUTO_INCREMENT,
+    `project_role_id` bigint(20) NOT NULL,
+    `department_id` bigint(20) NOT NULL,
+    `register_id` bigint(20) NOT NULL,
+    `register_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+    `modify_id` bigint(20) NOT NULL,
+    `modify_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
+    PRIMARY KEY (`id`),
+    KEY `projectRoleIdAndDepartmentIdIndex` (`project_role_id`,`department_id`),
+    KEY `departmentIdIndex` (`department_id`),
+    KEY `projectRoleIdIndex` (`project_role_id`)
+    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- �뀒�씠釉� owl_en_1.5.project_role_department 援ъ“ �궡蹂대궡湲�
+CREATE TABLE IF NOT EXISTS `project_role_department` (
+    `id` bigint(20) NOT NULL AUTO_INCREMENT,
+    `project_role_id` bigint(20) NOT NULL,
+    `department_id` bigint(20) NULL,
+    `register_id` bigint(20) NOT NULL,
+    `register_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+    `modify_id` bigint(20) NOT NULL,
+    `modify_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
+    PRIMARY KEY (`id`),
+    KEY `projectRoleIdAndDepartmentIdIndex` (`project_role_id`,`department_id`),
+    KEY `departmentIdIndex` (`department_id`),
+    KEY `projectRoleIdIndex` (`project_role_id`)
+    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
 -- �뀒�씠釉� �뜲�씠�꽣 owl_en_1.5.project_role_user:~0 rows (���왂�쟻) �궡蹂대궡湲�
 /*!40000 ALTER TABLE `project_role_user` DISABLE KEYS */;
 /*!40000 ALTER TABLE `project_role_user` ENABLE KEYS */;

--
Gitblit v1.8.0