feat: adds Flyway database migration tooling#104
Open
rahulvikram wants to merge 9 commits into
Open
Conversation
Adds notice to documentation about rollbacks not being supported by Flyway community. Instead tells devs to use new migration scripts to fix/reverse changes (which get applied during docker compose startup).
There was a problem hiding this comment.
Pull request overview
Adds Flyway Community database migration support to the Docker Compose dev workflow and documents how schema changes should be managed going forward, including an initial migration to add altText columns for accessibility.
Changes:
- Introduces a
flywayDocker Compose service that runs migrations after MariaDB is healthy and before the app starts. - Adds developer documentation for migration naming, safety, and running Flyway commands via Docker Compose.
- Adds V001 migration to add
altTextcolumns toItemsandHistory_Items.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| services/database/migrations/V001__add_altText_to_Items_and_History_Items.sql | Adds initial schema migration for altText columns. |
| services/database/migrations/README.md | Documents Flyway migration conventions and usage. |
| README.md | Updates dev DB guidance to Docker Compose + Flyway and fixes env var naming. |
| DOCKER.md | Documents Flyway service behavior and migration commands in Docker workflow. |
| docker-compose.yml | Adds Flyway service and gates app startup on successful migrations. |
| CONTRIBUTING.md | Updates contributor workflow to use the new seed and migration process. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Switches from using 'latest' to prevent breaking changes from different flyway versions being pulled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR: