Class LiquibaseAutoBindModule

java.lang.Object
se.fortnox.reactivewizard.dbmigrate.LiquibaseAutoBindModule
All Implemented Interfaces:
com.google.inject.Module, Comparable<AutoBindModule>, AutoBindModule

public class LiquibaseAutoBindModule extends Object implements AutoBindModule
Runs liquibase before the system is started, if parameter "db-migrate" is used. The following alternatives exist:
  • "db-migrate": Run migrations and shutdown system. Use this locally to avoid liquibase migrations during normal run.
  • "db-migrate-run": Run migrations and start the system. Use this in production, when you want to run migrations before the system is started.
  • "db-drop-migrate": Drop database, run migrations and shutdown system. Use this locally to get a clean start.
  • "db-drop-migrate-run": Drop database, run migrations and start the system. Use this locally to get a clean start and a running system.
  • Constructor Details

  • Method Details

    • preBind

      public void preBind()
      Specified by:
      preBind in interface AutoBindModule
    • configure

      public void configure(com.google.inject.Binder binder)
      Specified by:
      configure in interface com.google.inject.Module