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

Prepare database migration support #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

delvh
Copy link

@delvh delvh commented Mar 2, 2023

In the future, any PR that changes stored data must also adapt the corresponding changelog under src/main/resources/db/changelog/changelog-<version>.sql.
New versions should also use a new changelog instead of appending to an old one.
For details on how to keep the changelog up to date, consult the docs.

The initial changelog was not generated as there is no data yet.
Once it is present, it can be added simply by calling

liquibase generateChangeLog --username $DB_USER --password $DB_PASSWORD --url jdbc:postgresql://localhost:5432/postgres --changeLogFile src/main/resources/db/changelog/changelog-1.0.sql

Part of Gamify-IT/issues#439.

Once the backend data is present, it can be added simply by calling
liquibase generateChangeLog --username $DB_USER --password $DB_PASSWORD --url jdbc:postgresql://localhost:5432/postgres --changeLogFile src/main/resources/db/changelog/changelog-1.0.sql
@delvh delvh added the feature New feature or request label Mar 2, 2023
@delvh delvh self-assigned this Mar 2, 2023
@delvh delvh requested review from Aaron2000119 and madebyTimo March 3, 2023 09:06
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants