package net.savantly.sprout.starter.migration;

import javax.sql.DataSource;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CoreDBMigrationConfiguration {
	
	@Bean
	@ConditionalOnMissingBean
	public FlywayMigrationStrategy defaultFlywayMigrationStrategy() {
		return (flyway) -> {};
	}
	
	@Bean
	@ConditionalOnMissingBean
	public CoreDBMigrator defaultCoreDBMigrator(DataSource dataSource) {
		return new DefaultCoreDBMigrator(dataSource);
	}

}

@@ -535,32 +535,50 @@
  %7B%7D;%0A%09%7D%0A%09%0A%09@Bean
+(%22CoreDBMigrator%22)
 %0A%09@ConditionalOn

change bean name