-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix filename that was incorrect generated during 4.31.0 #6712
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
Conversation
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.
Can you add a test?
Are we planning on adding a message to the release notes of 4.30.0 explaining this issue and the recommended workaround?
ranChangeSet = ranIndex.get(incorrectKey); | ||
if (ranChangeSet != null) { | ||
if (!checkLiquibaseVersionIs(ranChangeSet.getLiquibaseVersion(), 4, 31)) { | ||
return null; |
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.
Maybe add a logging line here.
Scope.getCurrentScope().getSingleton(ExecutorService.class).getExecutor("jdbc", getDatabase()).execute(new UpdateChangeSetFilenameStatement | ||
(changeSet, oldPath)); | ||
getDatabase().commit(); | ||
reset(); |
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.
Add some logging here explaining what is happening please.
@@ -124,6 +125,14 @@ public void replaceChecksum(ChangeSet changeSet) throws DatabaseException { | |||
reset(); | |||
} | |||
|
|||
@Override | |||
public void replaceFilePath(ChangeSet changeSet, String oldPath) throws DatabaseException { |
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.
Is there any way to make this more targeted? And can we add a log about what's happening?
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.
I added another check in the calling class. Also, logs added!
* fix filename that was incorrect generated during 4.31.0 * chore: refactor and javadocs * chore: more javadocs * fix nullpointer; use correct method for logicalFilePath; logs * chore comments * fix another nullpointer * chore: adding integration tests * fix test title
fix filename that was incorrect generated during 4.31.0 (#6712) * fix filename that was incorrect generated during 4.31.0 * chore: refactor and javadocs * chore: more javadocs * fix nullpointer; use correct method for logicalFilePath; logs * chore comments * fix another nullpointer * chore: adding integration tests * fix test title Co-authored-by: suryaaki2 <80348493+suryaaki2@users.noreply.github.com>
* fix filename that was incorrect generated during 4.31.0 * chore: refactor and javadocs * chore: more javadocs * fix nullpointer; use correct method for logicalFilePath; logs * chore comments * fix another nullpointer * chore: adding integration tests * fix test title (cherry picked from commit 08bedf1)
) (liquibase#6716) fix filename that was incorrect generated during 4.31.0 (liquibase#6712) * fix filename that was incorrect generated during 4.31.0 * chore: refactor and javadocs * chore: more javadocs * fix nullpointer; use correct method for logicalFilePath; logs * chore comments * fix another nullpointer * chore: adding integration tests * fix test title Co-authored-by: suryaaki2 <80348493+suryaaki2@users.noreply.github.com>
Impact
Description
Things to be aware of
Things to worry about
Additional Context