-
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.
Fix for DAT-15716 :: Include 'OR REPLACE' instruction for a view when…
… generate-changelog/diff-changelog command are executed (#5304) * - Support added to include 'OR REPLACE' instruction for a view when using generate-changelog or diff-changelog commands. * DiffChangelog tests added. * Review comment applied, plus change on file name from diff tests. * - Removed global configuration, and instead added as a new command argument of GenerateChangelog and DiffChangelog commands. - Tests updated. * Diff test assertions updated. * - Review comments applied. - Close DB connection on DiffChangelog integration tests. * - Test assertion updated. - Command argument description updated. * Test assertion updated - Postgres not using camel case for view name. * Merge conflicts resolved. * Add support to use useOrReplaceOption property in maven for generate-changelog and diff-changelog command. --------- Co-authored-by: rberezen <ruslan.berezenskyi@gmail.com>
- Loading branch information
Showing
17 changed files
with
226 additions
and
4 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
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
11 changes: 11 additions & 0 deletions
11
liquibase-standard/src/main/java/liquibase/change/ReplaceIfExists.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package liquibase.change; | ||
|
||
/** | ||
* ReplaceIfExists interface will control whether an implementation change object class will set the replaceIfExists flag that basically will tell | ||
* generate-changelog/diffToChangelog commands the given change object needs to generate the SQL for replace the stored logic if it already exists | ||
*/ | ||
public interface ReplaceIfExists { | ||
|
||
void setReplaceIfExists(Boolean flag); | ||
|
||
} |
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.