Class FlywayConfiguration

java.lang.Object
io.github.blyznytsiaorg.bibernate.config.FlywayConfiguration

public class FlywayConfiguration extends Object
Configures and executes Flyway database migrations based on the provided BibernateDatabaseSettings.
Since:
1.0
Author:
Blyzhnytsia Team
  • Field Details

    • DB_MIGRATION_FILE_NAME

      public static final String DB_MIGRATION_FILE_NAME
      The name of the migration folder.
      See Also:
  • Constructor Details

    • FlywayConfiguration

      public FlywayConfiguration(BibernateDatabaseSettings bibernateDatabaseSettings)
      Initializes Flyway and executes migrations if Flyway is enabled in the Bibernate settings.
      Parameters:
      bibernateDatabaseSettings - the Bibernate database settings
  • Method Details

    • initFlyway

      private void initFlyway(BibernateDatabaseSettings bibernateDatabaseSettings)
      Initializes Flyway with the provided BibernateDatabaseSettings and executes migrations if Flyway is enabled.
      Parameters:
      bibernateDatabaseSettings - the Bibernate database settings