Skip to content

Commit

Permalink
flyway: START TRANSACTION 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimprodp committed Feb 13, 2025
1 parent 66365be commit 327e1a4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ALTER TABLE new_review ADD COLUMN member_id BIGINT NULL;

-- 기존 review 테이블을 삭제하고, new_review 테이블의 이름을 "review"로 변경합니다.
-- 운영 환경에서의 오류 발생 시, 작업 롤백을 위해 트랜잭션 실행합니다.
BEGIN;
DROP TABLE IF EXISTS review;
ALTER TABLE new_review RENAME TO review;
START TRANSACTION;
DROP TABLE IF EXISTS review;
ALTER TABLE new_review RENAME TO review;
COMMIT;

0 comments on commit 327e1a4

Please sign in to comment.