Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Environment
Liquibase Version: 4.7.0 but any
Liquibase Integration & Version: NA
Liquibase Extension(s) & Version: NA
Database Vendor & Version: H2
Operating System Type & Version: Any
Pull Request Type
Description
When running the examples with the example-changelog.sql you cannot rollback your changes.
This enhancement allows you to see the example scripts you would use to rollback your changes and allows you to use the rollback commands with this changelog. Also helps the init project
Steps To Reproduce
Use the example example-changelog.sql in the examples/sql directory of liquibase binary install
Run
liquibase --changeLogFile=examples/sql/example-changelog.sql update
Run
liquibase rollbackCount 3
or any other rollback command.Error occurs
Actual Behavior
Error occurs because there is no rollback command specified with .sql type changes out of the box.
Expected/Desired Behavior
Rollbacks work just fine and is successful with:
Screenshots (if appropriate)
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
Fast Track PR Acceptance Checklist:
Need Help?
Come chat with us on our discord channel
Dev Handoff Notes (Internal Use)
Links
Testing
Dev Verification
Code reviewed only
┆Issue is synchronized with this Jira Bug by Unito