JdbcTemplate template = new JdbcTemplate(ds);
// maybe we should make this optional?
boolean migrateCreationDates = Boolean.getBoolean("MIGRATE_CREATION_DATES");
if(migrateCreationDates) {
migrateTileDates(template, new FilePathGenerator(root.getPath()));
}
migrateParameters(template, root);
// remove all the tiles from storage to avoid further migration attempts
// in the future, but only if the old metastore was external to the data dir
if (!defaultLocation) {