Skip to content

Prepare database migration support#1

Open
delvh wants to merge 1 commit intomainfrom
maintenance/add-liquibase
Open

Prepare database migration support#1
delvh wants to merge 1 commit intomainfrom
maintenance/add-liquibase

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
@sonarqubecloud
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