Class Migration

java.lang.Object
org.jdbi.v3.testing.Migration

public class Migration extends Object
Represents a Flyway migration Jdbi should run.
  • Constructor Details

    • Migration

      public Migration()
  • Method Details

    • withDefaultPath

      public Migration withDefaultPath()
      Use Default db/migration Flyway schema migration location. Migration scripts must be on the classpath.
    • withPath

      public Migration withPath(String migrationPath)
      Add flyway migration path.
    • withPaths

      public Migration withPaths(String... migrationPaths)
      Add flyway migration paths.
    • withSchema

      public Migration withSchema(String schema)
      Add flyway migration schema.
    • withSchemas

      public Migration withSchemas(String... moreSchemas)
      Add flyway migration schemas.
    • cleanAfter

      public Migration cleanAfter()
      Will drop all objects in the configured schemas after tests using Flyway.
    • cleanAfter

      public Migration cleanAfter(boolean cleanAfter)
      Controls whether to drop all objects in the configured schemas after running the tests using Flyway.
    • before

      public static Migration before()
      Create new Migration.