Class LiquibaseMigrate
java.lang.Object
se.fortnox.reactivewizard.dbmigrate.LiquibaseMigrate
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
LiquibaseMigrate
@Inject public LiquibaseMigrate(LiquibaseConfig liquibaseConfig) throws liquibase.exception.LiquibaseException, IOException - Throws:
liquibase.exception.LiquibaseExceptionIOException
-
-
Method Details
-
run
public void run() throws liquibase.exception.LiquibaseExceptionRun this migration.- Throws:
liquibase.exception.LiquibaseException- on error
-
drop
public void drop() throws liquibase.exception.DatabaseExceptionDrop all db objects.- Throws:
liquibase.exception.DatabaseException- on error
-
forceDrop
public void forceDrop() throws liquibase.exception.DatabaseExceptionForce drop all db objects.- Throws:
liquibase.exception.DatabaseException- on error
-