All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.joschi.dropwizard.flyway.DbRepairCommand Maven / Gradle / Ivy

package com.github.joschi.dropwizard.flyway;

import io.dropwizard.Configuration;
import io.dropwizard.db.DatabaseConfiguration;
import net.sourceforge.argparse4j.inf.Namespace;
import org.flywaydb.core.Flyway;

public class DbRepairCommand extends AbstractFlywayCommand {
    public DbRepairCommand(final DatabaseConfiguration databaseConfiguration, final Class configurationClass) {
        super("repair", "Repairs the metadata table.", databaseConfiguration, configurationClass);
    }

    @Override
    public void run(final Namespace namespace, final Flyway flyway) throws Exception {
        flyway.repair();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy