From 5bd3751a0d582359eed1bc3fbe89010570636350 Mon Sep 17 00:00:00 2001 From: BJRambo Date: Mon, 24 Apr 2017 12:53:13 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=EC=8B=9C=20parent=5Fsrl=20=EC=97=90=20=EC=9D=B8=EB=8D=B1?= =?UTF-8?q?=EC=8A=A4=EA=B0=80=20=EC=97=86=EC=96=B4=20=EC=BF=BC=EB=A6=AC?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=EC=9D=B4=20=EC=98=A4=EB=9E=98=EA=B1=B8?= =?UTF-8?q?=EB=A6=AC=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EA=B3=A0=EC=B9=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 원문 PR https://github.com/xpressengine/xe-core/pull/2082 라이믹스에서는 이 PR을 가져올 경우 충돌의 여지가 있어 새로운 커밋으로 처리합니다. (class에서 충돌) --- modules/comment/comment.class.php | 10 ++++++++++ modules/comment/schemas/comments.xml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/comment/comment.class.php b/modules/comment/comment.class.php index c06bb0ee9..d7b4ffde9 100644 --- a/modules/comment/comment.class.php +++ b/modules/comment/comment.class.php @@ -105,6 +105,11 @@ class comment extends ModuleObject return true; } + if(!$oDB->isIndexExists("comments", "idx_parent_srl")) + { + return true; + } + return FALSE; } @@ -185,6 +190,11 @@ class comment extends ModuleObject $oDB->addColumn('comment_declared_log',"declare_message","text"); } + if(!$oDB->isIndexExists("comments", "idx_parent_srl")) + { + $oDB->addIndex('comments', 'idx_parent_srl', array('parent_srl')); + } + return new Object(0, 'success_updated'); } diff --git a/modules/comment/schemas/comments.xml b/modules/comment/schemas/comments.xml index 7acecd447..cf9a31f02 100644 --- a/modules/comment/schemas/comments.xml +++ b/modules/comment/schemas/comments.xml @@ -2,7 +2,7 @@ - +