修复flyway自动升级失败
This commit is contained in:
parent
4d058e1dce
commit
ac30ed67bc
@ -11,6 +11,7 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.sql.DataSource;
|
||||
import java.util.Map;
|
||||
|
||||
@ -96,7 +97,7 @@ public class FlywayConfig {
|
||||
@Value("${spring.flyway.clean-disabled:true}")
|
||||
private Boolean cleanDisabled;
|
||||
|
||||
@Bean
|
||||
@PostConstruct
|
||||
public void migrate() {
|
||||
if(!enabled){
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user