@@ -0,0 +1,827 @@
+package flyway.userlayer;%0A%0Aimport org.flywaydb.core.api.migration.jdbc.JdbcMigration;%0Aimport fi.nls.oskari.util.PropertyUtil;%0Aimport java.sql.Connection;%0Aimport java.sql.PreparedStatement;%0A%0A/**%0A * Delete content from selected_feature_params and feature_params_locales%0A */%0Apublic class V1_0_5__remove_selected_params_and_locales implements JdbcMigration %7B%0A%0A%09public void migrate(Connection connection) throws Exception %7B%0A%09%09final String sql = %22UPDATE portti_wfs_layer SET %22 +%0A                %22selected_feature_params = '%7B%7D', feature_params_locales = '%7B%7D' %22 +%0A                %22 WHERE maplayer_id=?%22;%0A%09%09%09%09%0A%09int maplayerId = PropertyUtil.getOptional(%22userlayer.baselayer.id%22, -1);%0A%09%0A%09try (final PreparedStatement statement = connection.prepareStatement(sql)) %7B%0A%09    statement.setInt(1, maplayerId);%0A%09    statement.execute();%0A%7D%0A%09%0A%09%7D%0A%7D

remove selected params and locales from userlayer