@@ -0,0 +1,723 @@
+package flyway.pti3d;%0A%0Aimport java.sql.Connection;%0Aimport java.util.List;%0Aimport org.flywaydb.core.api.migration.jdbc.JdbcMigration;%0Aimport fi.nls.oskari.util.FlywayHelper;%0A%0Apublic class V1_9__add_shadow_bundle_to_3D_views implements JdbcMigration%7B%0A%09private static final String BUNDLE_ID = %22shadow-plugin-3d%22;%0A%09private static final String APPLICATION_NAME = %22geoportal-3D%22;%0A%09%0A%09@Override%0A%09public void migrate(Connection conn) throws Exception %7B%0A%09%09final List%3CLong%3E views = FlywayHelper.getUserAndDefaultViewIds(conn, APPLICATION_NAME);%0A%09%09for (Long viewId : views) %7B%0A%09%09%09if (FlywayHelper.viewContainsBundle(conn, BUNDLE_ID, viewId)) %7B%0A%09%09%09%09continue;%0A%09%09%09%7D%0A%09%09%09FlywayHelper.addBundleWithDefaults(conn, viewId, BUNDLE_ID);%0A%09%09%7D%0A%09%7D%0A%7D%0A

add shadow plugin to 3d views