[BE] fix: Flyway 스크립트 DDL 문법 오류 수정 #1071
Merged
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.
Flyway 스크립트의 문법 오류가 있어 이를 수정합니다. (MySQL에서는 UPDATE문에 FOR를 지원하지 않습니다)
ASIS:
UPDATE question q SET section_id = sq.section_id FROM section_question sq WHERE q.id = sq.question_id;
TOBE:
UPDATE question q JOIN section_question sq ON q.id = sq.question_id SET q.section_id = sq.section_id;