문서 및 댓글 추천 before 시점에 트리거 추가#2346
Merged
3 commits merged intoDec 10, 2018
Merged
Conversation
dorami
added a commit
to daolcms/daolcms
that referenced
this pull request
Dec 23, 2018
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
XE에서 지원하는 대부분의 트리거는 before와 after가 한 쌍으로 되어 있는데, 유독 문서 추천(document.updateVotedCount)과 댓글 추천(comment.updateVotedCount)는 after만 지원해서 서드파티 자료가 추천 전에 끼어들기가 쉽지 않습니다. after 트리거에서 에러를 반환하여 rollback을 유도함으로써 추천을 막는 방법이 있지만, 이것도 트랜잭션을 사용할 수 있는 DB type에서나 통하는 꼼수이고요.