Class MigrationRunner
java.lang.Object
com.iantapply.orchestra.adapter.postgres.MigrationRunner
Applies the bundled, idempotent Orchestra PostgreSQL schema migration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmigrate()Applies all bundled schema statements in one transaction.
-
Constructor Details
-
MigrationRunner
Creates a migration runner.- Parameters:
dataSource- database receiving the schema migration
-
-
Method Details
-
migrate
Applies all bundled schema statements in one transaction.- Throws:
SQLException- when PostgreSQL rejects the migrationIOException- when the bundled migration cannot be read
-