Skip to content

Commit f08fa33

Browse files
author
hodoon
committed
ci(deploy): Flyway 환경 변수 주입 및 마이그레이션 스크립트 보완
1 parent f71ad93 commit f08fa33

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/cicd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ jobs:
136136
REDIS_PORT=${{ secrets.REDIS_PORT }}
137137
DDL_AUTO=${{ secrets.DDL_AUTO }}
138138
SHOW_SQL=${{ secrets.SHOW_SQL }}
139+
FLYWAY_ENABLED=${{ secrets.FLYWAY_ENABLED }}
140+
FLYWAY_BASELINE_ON_MIGRATE=${{ secrets.FLYWAY_BASELINE_ON_MIGRATE }}
141+
FLYWAY_BASELINE_VERSION=${{ secrets.FLYWAY_BASELINE_VERSION }}
139142
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
140143
KAKAO_CLIENT_ID=${{ secrets.KAKAO_CLIENT_ID }}
141144
KAKAO_REDIRECT_URI=${{ secrets.KAKAO_REDIRECT_URI }}

src/main/resources/db/migration/V1__init_schema.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
SET statement_timeout = 0;
99
SET lock_timeout = 0;
1010
SET idle_in_transaction_session_timeout = 0;
11-
SET transaction_timeout = 0;
1211
SET client_encoding = 'UTF8';
1312
SET standard_conforming_strings = on;
1413
SELECT pg_catalog.set_config('search_path', '', false);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- V3: workspace_reasons.workspace_request_id NOT NULL 제약 추가
2+
-- V2에서 컬럼/FK는 추가됐으나 엔티티 @JoinColumn(nullable = false)와 스키마 불일치 해소
3+
4+
ALTER TABLE workspace_reasons
5+
ALTER COLUMN workspace_request_id SET NOT NULL;

0 commit comments

Comments
 (0)