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

Add an option to automatically migrate the database #216

Merged
merged 6 commits into from
Apr 18, 2024

Conversation

JssDWt
Copy link
Collaborator

@JssDWt JssDWt commented Apr 8, 2024

This PR adds a possibility to automatically migrate the lspd database, using golang-migrate.
If lspd is run with an environment variable AUTO_MIGRATE_DATABASE=true, it will automatically apply database migrations on startup.

Considerations:

  • This PR should have tests to ensure the correct migrations are applied when an upgrade is available
  • This migration strategy would only work if golang-migrate is the only tool used to upgrade the database

@JssDWt JssDWt requested review from yaslama and hydra-yse April 8, 2024 12:25
@JssDWt JssDWt merged commit 181de49 into master Apr 18, 2024
59 checks passed
@JssDWt JssDWt deleted the jssdwt-auto-migrate branch May 24, 2024 10:05
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.

3 participants