Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sql.init을 사용하지 않도록 제거 #91

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

Jeongjjuna
Copy link
Contributor

#️⃣ 관련 이슈

📝 작업한 내용

  • sql.init을 사용하지 않도록 제거

💬 논의하고 싶은 내용

  • 필요한 경우 data 에 있는 sql문을 직접 실행시켜서 넣는게 좋을 것 같습니다!!(각자 로컬 개발환경에서만)

@Jeongjjuna Jeongjjuna added 🔥 Bug 버그를 해결하자! 🚀 BE 우리는 백엔드 개발자! labels Sep 15, 2024
@Jeongjjuna Jeongjjuna self-assigned this Sep 15, 2024
@Jeongjjuna Jeongjjuna linked an issue Sep 15, 2024 that may be closed by this pull request
Comment on lines -27 to -31
sql:
init:
mode: always
data-locations:
- classpath:/data/init_insert_quiz_data.sql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flyway가 적용되는 스키마가 순차적으로 실행되고 해당 data.sql 이 실행되지않나요? 혹시 어떤 에러 였을까요? 너무 번거롭고 에러를 빈번하게 일으킨다면 지우는 것도 한 방법이 될 것 같네요!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flyway 실행 후에 data.sql 이 실행됨이 보장되지 않는 것 같아요!
그래서 자체적으로 flyway 옵션에 마이그레이션 후에 시작될 sql문을 적어줄 순 있었는데, 파일이 아니라 직접 sql문을 적어줘야돼서 가독성이 안좋아서 안했습니다!!

@Jeongjjuna Jeongjjuna merged commit bd82e48 into develop Sep 16, 2024
1 check passed
@Jeongjjuna Jeongjjuna deleted the fix/#90-flyway와-initsql-충돌-문제 branch September 16, 2024 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 BE 우리는 백엔드 개발자! 🔥 Bug 버그를 해결하자!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: flyway와 init.sql 충돌 문제
2 participants