Package org.jdbi.v3.testing
Class Migration
java.lang.Object
org.jdbi.v3.testing.Migration
Represents a Flyway migration Jdbi should run.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Migration
before()
Create new Migration.Will drop all objects in the configured schemas after tests using Flyway.Use Defaultdb/migration
Flyway schema migration location.Add flyway migration path.Add flyway migration paths.withSchema
(String schema) Add flyway migration schema.withSchemas
(String... moreSchemas) Add flyway migration schemas.
-
Constructor Details
-
Migration
public Migration()
-
-
Method Details
-
withDefaultPath
Use Defaultdb/migration
Flyway schema migration location. Migration scripts must be on the classpath. -
withPath
Add flyway migration path. -
withPaths
Add flyway migration paths. -
withSchema
Add flyway migration schema. -
withSchemas
Add flyway migration schemas. -
cleanAfter
Will drop all objects in the configured schemas after tests using Flyway. -
before
Create new Migration.
-