문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
java:database:migration:flyway [2023/06/08 10:11] kwon37xi |
java:database:migration:flyway [2023/06/08 10:20] kwon37xi [migration history는 생성됐으나 success = 0] |
||
---|---|---|---|
줄 115: | 줄 115: | ||
==== migration history는 생성됐으나 success = 0 ==== | ==== migration history는 생성됐으나 success = 0 ==== | ||
<code sql> | <code sql> | ||
+ | -- 먼저 데이터 확인 | ||
select * from flyway_schema_history WHERE version = < | select * from flyway_schema_history WHERE version = < | ||
+ | |||
+ | -- 성공으로 강제 update | ||
update flyway_schema_history SET success = 1 WHERE version = < | update flyway_schema_history SET success = 1 WHERE version = < | ||
</ | </ | ||
줄 142: | 줄 145: | ||
from flyway_schema_history fsh where version = < | from flyway_schema_history fsh where version = < | ||
- | -- 실제 flyway를 적용할 DB에서 위에서 나온 SQL 문을 실행해주면 된다. | + | -- 실제 flyway를 적용할 DB에서 위 쿼리를 실행해서 나온 SQL 문을 실행해주면 된다. |
</ | </ | ||