package flyway.asdistats;

import fi.nls.oskari.domain.map.view.Bundle;
import org.flywaydb.core.api.migration.BaseJavaMigration;
import org.flywaydb.core.api.migration.Context;
import org.oskari.helpers.AppSetupHelper;

/**
 * Add statsgrid bundle to views that don't have it.
 */
public class V1_0__add_statsgrid_to_geoportal extends BaseJavaMigration {

    public void migrate(Context context) throws Exception {
        AppSetupHelper.addBundleToDefaultAndUserApps(
                context.getConnection(), new Bundle("statsgrid"));
    }
}

@@ -24,53 +24,8 @@
 s;%0A%0A
-import fi.nls.oskari.domain.map.view.Bundle;%0A
 impo
@@ -403,44 +403,13 @@
 leTo
-DefaultAndUserApps(%0A                
+Apps(
 cont
@@ -433,19 +433,8 @@
 (), 
-new Bundle(
 %22sta
@@ -441,17 +441,16 @@
 tsgrid%22)
-)
 ;%0A    %7D%0A

Use string version so we dont need import