From 1b960584383766692a257a4cdd92daf19bab172d Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 월, 27 12월 2021 09:32:50 +0900
Subject: [PATCH] - API 추가/수정시 사용자 정의 필드 항목이 없을 경우 오류 처리 - API 에서 도메인만 추출하여 같은 도메인을 갖는 업체/isp/hosting 자동 입력하도록 수정

---
 src/main/resources/migration/V1_1__Initial_Setup.sql |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/migration/V1_1__Initial_Setup.sql b/src/main/resources/migration/V1_1__Initial_Setup.sql
index 0ea3a43..6474c42 100644
--- a/src/main/resources/migration/V1_1__Initial_Setup.sql
+++ b/src/main/resources/migration/V1_1__Initial_Setup.sql
@@ -80,9 +80,6 @@
     `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,
@@ -545,6 +542,21 @@
 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,

--
Gitblit v1.8.0