<commit_before><commit_msg>add shadow plugin to 3d views<commit_after>package flyway.pti3d;

import java.sql.Connection;
import java.util.List;
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
import fi.nls.oskari.util.FlywayHelper;

public class V1_9__add_shadow_bundle_to_3D_views implements JdbcMigration{
	private static final String BUNDLE_ID = "shadow-plugin-3d";
	private static final String APPLICATION_NAME = "geoportal-3D";
	
	@Override
	public void migrate(Connection conn) throws Exception {
		final List<Long> views = FlywayHelper.getUserAndDefaultViewIds(conn, APPLICATION_NAME);
		for (Long viewId : views) {
			if (FlywayHelper.viewContainsBundle(conn, BUNDLE_ID, viewId)) {
				continue;
			}
			FlywayHelper.addBundleWithDefaults(conn, viewId, BUNDLE_ID);
		}
	}
}
{'fraction_non_alphanumeric': 0.09217171717171717, 'fraction_numerical': 0.008838383838383838, 'mean_word_length': 5.836206896551724, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1092564', 'n_tokens_mistral': 289, 'n_tokens_neox': 270, 'n_words': 56}