Class HitlSchemaManager
java.lang.Object
dev.agenor.adapters.persistence.hitl.HitlSchemaManager
Runs Flyway migrations for the HITL approval queue schema on startup.
History is kept in agenor_hitl_schema_history, so the queue can share a database
with the agent directory and with an application's own schema; see SchemaMigrations.
- 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/agenor/hitl
-
-
Method Details
-
migrate
public void migrate()Applies all pending Flyway migrations. Safe to call on every startup, on a database of its own or shared with the directory and an application's schema.
-