public DbCommand(final String name, final DatabaseConfiguration<T> databaseConfiguration, final FlywayConfiguration<T> flywayConfiguration, final Class<T> configurationClass) { super(name, "Run database migration tasks", databaseConfiguration, flywayConfiguration, configurationClass); addSubCommand(new DbMigrateCommand<>(databaseConfiguration, flywayConfiguration, configurationClass)); addSubCommand(new DbCleanCommand<>(databaseConfiguration, flywayConfiguration, configurationClass)); addSubCommand(new DbInitCommand<>(databaseConfiguration, flywayConfiguration, configurationClass)); addSubCommand(new DbValidateCommand<>(databaseConfiguration, flywayConfiguration, configurationClass)); addSubCommand(new DbInfoCommand<>(databaseConfiguration, flywayConfiguration, configurationClass)); addSubCommand(new DbRepairCommand<>(databaseConfiguration, flywayConfiguration, configurationClass)); }
AbstractFlywayCommand(final String name, final String description, final DatabaseConfiguration<T> databaseConfiguration, final FlywayConfiguration<T> flywayConfiguration, final Class<T> configurationClass) { super(name, description); this.databaseConfiguration = databaseConfiguration; this.flywayConfiguration = flywayConfiguration; this.configurationClass = configurationClass; }
public DbValidateCommand(final DatabaseConfiguration<T> databaseConfiguration, final FlywayConfiguration<T> flywayConfiguration, final Class<T> configurationClass) { super("validate", "Validates the applied migrations against the ones available on the classpath.", databaseConfiguration, flywayConfiguration, configurationClass); }
public DbRepairCommand(final DatabaseConfiguration<T> databaseConfiguration, final FlywayConfiguration<T> flywayConfiguration, final Class<T> configurationClass) { super("repair", "Repairs the metadata table.", databaseConfiguration, flywayConfiguration, configurationClass); }
public DbInitCommand(final DatabaseConfiguration<T> databaseConfiguration, final FlywayConfiguration<T> flywayConfiguration, final Class<T> configurationClass) { super("init", "Creates and initializes the metadata table (existing database).", databaseConfiguration, flywayConfiguration, configurationClass); }
public DbInfoCommand(final DatabaseConfiguration<T> databaseConfiguration, final FlywayConfiguration<T> flywayConfiguration, final Class<T> configurationClass) { super("info", "Prints the details and status information about all the migrations.", databaseConfiguration, flywayConfiguration, configurationClass); }
public DbCleanCommand(final DatabaseConfiguration<T> databaseConfiguration, final FlywayConfiguration<T> flywayConfiguration, final Class<T> configurationClass) { super("clean", "Drops all objects in the configured schemas.", databaseConfiguration, flywayConfiguration, configurationClass); }
public DbMigrateCommand(final DatabaseConfiguration<T> databaseConfiguration, final FlywayConfiguration<T> flywayConfiguration, final Class<T> configurationClass) { super("migrate", "Migrates the database.", databaseConfiguration, flywayConfiguration, configurationClass); }