Class LiquibaseMigrate

java.lang.Object
se.fortnox.reactivewizard.dbmigrate.LiquibaseMigrate

public class LiquibaseMigrate extends Object
Runs liquibase migrations for each file on the classpath named according to config. In a development environment this is may be multiple files. In a production environment (fatjar) this is often a single file.
  • Constructor Details

    • LiquibaseMigrate

      @Inject public LiquibaseMigrate(LiquibaseConfig liquibaseConfig) throws liquibase.exception.LiquibaseException, IOException
      Throws:
      liquibase.exception.LiquibaseException
      IOException
  • Method Details

    • run

      public void run() throws liquibase.exception.LiquibaseException
      Run this migration.
      Throws:
      liquibase.exception.LiquibaseException - on error
    • drop

      public void drop() throws liquibase.exception.DatabaseException
      Drop all db objects.
      Throws:
      liquibase.exception.DatabaseException - on error
    • forceDrop

      public void forceDrop() throws liquibase.exception.DatabaseException
      Force drop all db objects.
      Throws:
      liquibase.exception.DatabaseException - on error