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

๐Ÿ›ย [Bug] main flyway์™€ test schema.sql ๋ถˆ์ผ์น˜ #392

Closed
middlefitting opened this issue Dec 15, 2023 · 0 comments ยท Fixed by #498
Closed

๐Ÿ›ย [Bug] main flyway์™€ test schema.sql ๋ถˆ์ผ์น˜ #392

middlefitting opened this issue Dec 15, 2023 · 0 comments ยท Fixed by #498
Assignees
Labels
bug Something isn't working
Milestone

Comments

@middlefitting
Copy link
Member

middlefitting commented Dec 15, 2023

Problem

ํ˜„์žฌ flyway ํŒŒ์ผ์€ alter ํ…Œ์ด๋ธ”๋ถ€ํ„ฐ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
๋”ฐ๋ผ์„œ ๊ธฐ์กด ํ…Œ์ด๋ธ”์ด ์—†์œผ๋ฉด ์‹คํ–‰์„ ํ•˜์ง€ ๋ชปํ•˜๋Š”๋ฐ ๋ฌธ์ œ๋Š” ๊ทธ ํ…Œ์ด๋ธ”์˜ ๋‚ด์šฉ์„ ์•Œ ์ˆ˜๊ฐ€ ์—†๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
ํ˜„์žฌ ํ…Œ์ŠคํŠธ ๊ฒ€์ฆ์€ ์ž„์‹œ๋กœ schema.sql ํŒŒ์ผ์„ ๋งŒ๋“ค์–ด์„œ ๊ฒ€์ฆ์„ ์ˆ˜ํ–‰ํ•˜๊ณ  ์žˆ์ง€๋งŒ flyway ํŒŒ์ผ์ด ์ถ”๊ฐ€๋˜์—ˆ์„๋•Œ schema.sql๋ฅผ ๋ฐ”๋กœ ์—…๋ฐ์ดํŠธ ํ•˜์ง€ ์•Š์œผ๋ฉด main๊ณผ test ๊ฐ„์˜ ๋ถˆ์ผ์น˜๋กœ ์ด์ƒํ•œ ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜์˜ฌ ์ˆ˜ ์žˆ๋‹ค ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ์–‘์ชฝ ๋ชจ๋‘์—์„œ flyway๋กœ๋งŒ ์Šคํ‚ค๋งˆ๋ฅผ ๊ด€๋ฆฌํ•ด์•ผ ๋ถˆ์ผ์น˜ ๋ฌธ์ œ๋ฅผ ์™„์ „ํžˆ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ•ด๊ฒฐ ๋ฐฉ์•ˆ

    1. flyway ์žฌ์„ค๊ณ„
    1. ๊ธฐ์กด ํ…Œ์ด๋ธ” ์ •๋ณด ์•Œ์•„๋‚ด๊ธฐ
    1. flaway ๊ฒ€์ฆ๊ณผ schema.sql ์‹คํ–‰ ์ˆœ์„œ ์กฐ์ •ํ•˜๊ธฐ

Reproduction

flyway ํŒŒ์ผ์—์„œ cascade ์˜ต์…˜ ๋“ฑ์„ ์ถ”๊ฐ€ํ•˜์—ฌ๋„ shema.sql์„ ์ตœ์‹ ํ™”ํ•˜์ง€ ์•Š์œผ๋ฉด ์•Œ ์ˆ˜ ์—†์Œ

@middlefitting middlefitting added the bug Something isn't working label Dec 15, 2023
@middlefitting middlefitting changed the title ๐Ÿ›ย [Bug] main flyway์™€ ํ…Œ์ŠคํŠธ schema.sql ๋ถˆ์ผ์น˜ ๐Ÿ›ย [Bug] main flyway์™€ test schema.sql ๋ถˆ์ผ์น˜ Dec 15, 2023
@Kimhan-nah Kimhan-nah modified the milestones: Sprint 6, Sprint 7 Dec 15, 2023
@middlefitting middlefitting moved this to ๐Ÿ‘€ In review in 42gg-5th-be Dec 19, 2023
@Kimhan-nah Kimhan-nah removed the status in 42gg-5th-be Dec 19, 2023
@Kimhan-nah Kimhan-nah removed this from the Sprint 7 milestone Dec 20, 2023
@middlefitting middlefitting added this to the Sprint 9 milestone Jan 10, 2024
@github-project-automation github-project-automation bot moved this to โœ… Done in 42gg-5th-be Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: โœ… Done
2 participants