package flyway.oskari;

import java.sql.Connection;

import org.flywaydb.core.api.migration.jdbc.JdbcMigration;

import fi.nls.oskari.db.BundleHelper;
import fi.nls.oskari.domain.map.view.Bundle;

public class V1_55_2__register_dimension_change_bundle implements JdbcMigration {

    private static final String BUNDLE_ID = "dimension-change";

    @Override
    public void migrate(Connection connection) throws Exception {
        Bundle bundle = new Bundle();
        bundle.setName(BUNDLE_ID);
        bundle.setConfig("{}");
        BundleHelper.registerBundle(bundle, connection);
    }
}

add flyway to register dimension change bundle