@@ -0,0 +1,782 @@
+package flyway.asdi;%0A%0Aimport java.sql.Connection;%0Aimport java.util.List;%0A%0Aimport org.flywaydb.core.api.migration.jdbc.JdbcMigration;%0A%0Aimport fi.nls.oskari.util.FlywayHelper;%0A%0A/**%0A * Adds printout bundle to all user/default views%0A */%0Apublic class V1_17_0__add_printout_bundle_to_views implements JdbcMigration %7B%0A%09%0A%09private static final String BUNDLE_ID = %22printout%22;%0A%09%0A%09@Override%0A%09public void migrate(Connection connection) throws Exception %7B%0A%09%09  final List%3CLong%3E views = FlywayHelper.getUserAndDefaultViewIds(connection);%0A%09        for (Long viewId : views) %7B%0A%09            if (FlywayHelper.viewContainsBundle(connection, BUNDLE_ID, viewId)) %7B%0A%09                continue;%0A%09            %7D%0A%09            FlywayHelper.addBundleWithDefaults(connection, viewId, BUNDLE_ID);%0A%09        %7D%09%0A%09%7D%0A%0A%7D%0A

Add Flyway migration to add printout- bundle to user and default views