Skip to content

Conversation

@danthe1st
Copy link
Member

@danthe1st danthe1st commented Mar 9, 2025

This PR updates various dependencies including Spring and H2.

BEFORE DEPLOYMENT

One of the dependency updates is H2 which uses a different database format now. Before deploying this change, the DB should be exported (/db-admin export-schema include-data: true) and then a new DB should be created (e.g. via the DB console using java -jar ~/.m2/repository/com/h2database/h2/2.3.232/h2-2.3.232.jar) and the exported script needs to be executed using:

RUNSCRIPT FROM 'dump.sql'

This new DB can then be used instead the old one. If the update needs to be reverted for some reason, I created a backup of the image using the name dan1st/javabot:backup. The new version is available under dan1st/javabot-test:dep-update (until it's merged)

@danthe1st danthe1st requested a review from a team as a code owner March 9, 2025 12:53
@danthe1st danthe1st merged commit 170ab00 into Java-Discord:main Mar 25, 2025
2 checks passed
@danthe1st danthe1st deleted the deps branch March 25, 2025 22:49
@danthe1st
Copy link
Member Author

danthe1st commented Mar 25, 2025

New version deployed successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants