Skip to content

Introduce db-migrator app for migrating flow-persistence, flow-quartz and data-index migrations - #88

Draft
mathecruz wants to merge 1 commit into
kubesmarts:mainfrom
mathecruz:db-migrator
Draft

mathecruz wants to merge 1 commit into
kubesmarts:mainfrom
mathecruz:db-migrator

Conversation

@mathecruz

@mathecruz mathecruz commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds db-migrator, a one-shot Job that runs Flyway migrations for the runtime, quartz, and data-index schema streams against a shared PostgreSQL database, then reports success/failure as JSON on the
container's termination message.

Depends on quarkus-flow-db-migration / quarkus-flow-db-migration-quartz from quarkiverse/quarkus-flow#1038, pinned to 2.0.0-SNAPSHOT until that PR is released.

Changes

  • New db-migrator module (MigrationRunner, MigrationReport, StreamResult)
  • Each stream runs on its own named Flyway datasource, so each gets an isolated history table on the shared schema
  • Which streams to run is controlled by LOGIC_DB_MIGRATOR_INCLUDE

… and data-index migrations

Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
@mathecruz mathecruz changed the title Introduce db-migrator app for migrating flow-persistence, flow-quartz… Introduce db-migrator app for migrating flow-persistence, flow-quartz and data-index migrations Oct 2, 2026

This branch has not been deployed

No deployments
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.

1 participant