Skip to content
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

Feature request: Create update-reference command #4039

Open
1 of 2 tasks
TymofiiKritsak opened this issue Mar 28, 2023 · 1 comment
Open
1 of 2 tasks

Feature request: Create update-reference command #4039

TymofiiKritsak opened this issue Mar 28, 2023 · 1 comment

Comments

@TymofiiKritsak
Copy link
Contributor

Search first

  • I searched and no similar issues were found

Description

Feature request

Similar to snapshot-reference command, it will be useful to have update-reference command to deploy to the reference database connection.

Having this command will remove the need of modifying --url, --username, --password values to match the reference database connection values in order to deploy to reference db.

Commands to consider:
update-reference
update-reference-sql
update-reference-count
update-reference-count-sql
update-reference-one-changeset
update-reference-one-changeset-sql
update-reference-sql
update-reference-testing-rollback
update-reference-to-tag
update-reference-to-tag-sql

OR, these can be named vise-versa:
reference-update
reference-update-sql
reference-update-count
reference-update-count-sql
reference-update-one-changeset
reference-update-one-changeset-sql
reference-update-sql
reference-update-testing-rollback
reference-update-to-tag
reference-update-to-tag-sql

Steps To Reproduce

Setup

  • GIVEN I have the liquibase.properties configured with both target and reference databases:
url: jdbc:postgresql://localhost:5433/mydb
username: user
password: password

referenceUrl: jdbc:postgresql://localhost:5434/mydb
referenceUsername: user
referencePassword: password
  • WHEN I want to deploy changes to the reference database
  • THEN I need to modify the --url, --username, --password to match reference values in order to deploy to reference database

Expected/Desired Behavior

Desired Behavior

Since I already have the reference database configuration in place (liquibase.properties), I want to run update-reference command to deploy chages to the reference connection.

Liquibase Version

4.20

Database Vendor & Version

ALL

Liquibase Integration

NONE

Liquibase Extensions

NONE

OS and/or Infrastructure Type/Provider

ALL

Additional Context

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR (Thank you!)
@nvoxland
Copy link
Contributor

An alternative to creating all the duplicate commands would be to have an additional parameter like --connection=[standard|reference] or something that gets added to the existing commands and controls whether the --url etc arguments or the --reference-url etc arguments get used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Open Issues
Development

No branches or pull requests

2 participants