-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 include/includeAll to correct track relativeToChangelog=true paths using ./ or ../ #3355
Conversation
…until it is correctly handled in ResourceAccessor
Using ../ when relativeToChangelog=true seems quite common use case. Is thsis going to be merged for the next release? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed tests, so there is test coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR addresses a regression in the path shown some output messages and the value stored in DATABASECHANGELOG tracking table when include
or includeAll
changesets specify relativeToChangelog=true
.
- Automated functional and test harness executions passing.
- New unit test added.
- No additional testing required.
APPROVED
…th (Paths.get added on #3355 to normalize Strings removes it)
This impacts existing migrations so this is a breaking change wouldn't it be ? On migration , for a sql file, the filename will include the path separator in the changelog table |
Well, it went back to as it was before 4.17.0 . So if you already faced this problem with 4.17 you need to run clearChecksums before upgrading. |
Impact
Description
Changes in 4.17.0 made a changelog like
<include file="./changelog.workspace.sql" relativeToChangelogFile="true"/>
incorrectly include the./
in the databasechangelog table andstatus --verbose
among other places.The correct fix is in the Resource's resolveSibling() function, but this is a temporary work around until we have a better solution in there.
Things to be aware of
Things to worry about