Class HitlSchemaManager
java.lang.Object
dev.agenor.adapters.persistence.hitl.HitlSchemaManager
Runs Flyway migrations for the HITL approval queue schema on startup.
- Since:
- 0.23.0
-
Constructor Summary
ConstructorsConstructorDescriptionHitlSchemaManager(DataSource dataSource, String migrationLocation) Creates a schema manager that will run Flyway migrations from the given location. -
Method Summary
-
Constructor Details
-
HitlSchemaManager
Creates a schema manager that will run Flyway migrations from the given location.- Parameters:
dataSource- the JDBC data source; must not be nullmigrationLocation- Flyway location, e.g.classpath:db/migration/agenor-hitl
-
-
Method Details
-
migrate
public void migrate()Applies all pending Flyway migrations. Idempotent — safe to call on every startup.
-