-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAT-13285 - Fix CheckSum generation issues + improvement (#3914)
* Compute checksum method updated * Checksum logic updated for visitors and changes. * GenerateCheckSum field filter logic updated, plus refactoring on generateCheckSum logic from createProcedure change * generateCheckSum code refactoring done for Create Procedure, updated same method logic for CreateView change, plus some minor refactorings. * Fixed unit tests. * Added createProcedure and changeSet unit tests * Added back procedure text null check. * Null check added on normalizing stream constructor method. * Correction to previous commmit on null check added on normalizing stream constructor * CURRENT_CHECKSUM_ALGORITHM_VERSION updated from 8 to 9. * Update checksum test assertions to match with algorithm version change * Review comments applied. * Update encoding configuration for CreateProcedure change. * CreateProcedureChange test name updated. * Update calculateCheckSum command tests to upgrade expected checksum which changed after upgrading algorithm version. * CreateProcedure and CreateView tests added, plus minor refactorings. * Merge * Updates checksum for tests. * Exclude fields for PRO change types to avoid recalculating checksum when there are not significant changes. * Added a generic generateCheckSum method to use it across some different change types extending from CreateProcedureChange. * Add missing parameter * - Update change objects (CreateProcedure, CreateView and SQLFile) to make use properties updates when using a SQL file - Added unit tests for changes made. * - Support added to exclude change set attribute fields not needed when computing checksum. - Extract expanding stream content in to a separate component. * - Undo fields exclusion from generateCheckSum (AbstractSQLChange). - PropertyExpandingStream refactoring. * - New checksum unit tests added for some more change attributes for CreateProcedure and CreateView. - Minor refactoring done on tests. * Undo db change property changes recently done from CreateProcedure change. * DAT-14642 - Prevents Liquibase from incorrectly attempting to redeploy changesets during checksum upgrade (#4193) * Makes sure that we reset ChangeLogHistoryServiceFactory after upgradingCheckSums. * Rollback DropAllCommand.java changes. * Trigger Build * Rollback changes * Makes ReleaseLocks Command checksum upgrade consistent with ListLocks * Fix null md5sum issues during checksum upgrades * When updating checksums use the stored file path instead of the generated one as we changed the way that we store paths during the years * Fix validate command * Fix unexpected-changesets command * Adding unit tests for PR 4210 . --------- Co-authored-by: Sayali M <sayali@Sayalis-MacBook-Pro> --------- Co-authored-by: Daniel Mallorga <dmallorga@liquibase.com> Co-authored-by: Daniel Mallorga <75833793+MalloD12@users.noreply.github.com> Co-authored-by: filipe <filipe@caelum> Co-authored-by: Sayali M <sayali@Sayalis-MacBook-Pro> Co-authored-by: suryaaki2 <80348493+suryaaki2@users.noreply.github.com>
- Loading branch information
1 parent
cd1c6e9
commit d100bbb
Showing
28 changed files
with
740 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.