aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-18 12:06:30 +0300
committerGravatar Vitaly Takmazov2022-12-18 12:06:30 +0300
commit074b9da6754bd472ac8f0348a9953124f785c380 (patch)
treea8ffe1bedd4556ca33db063e3614729644dbd6ca
parent372368d7bf50daa73375ba3a42132d0585aa7734 (diff)
Revert "flyway: trying to repair on migrate"
This reverts commit 32f09ccf94c8ee50444dafa7f468c6e53a1d75df.
-rw-r--r--src/main/java/com/juick/API.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/java/com/juick/API.java b/src/main/java/com/juick/API.java
index 077fc1bc..755e4fc4 100644
--- a/src/main/java/com/juick/API.java
+++ b/src/main/java/com/juick/API.java
@@ -20,10 +20,8 @@ package com.juick;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy;
import org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
-import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@@ -31,13 +29,6 @@ import org.springframework.context.annotation.ComponentScan;
@EnableCaching
@ComponentScan(basePackages = {"com.juick.config", "com.juick.service", "com.juick.www"})
public class API {
- @Bean
- public FlywayMigrationStrategy cleanMigrateStrategy() {
- return flyway -> {
- flyway.repair();
- flyway.migrate();
- };
- }
public static void main(String[] args) {
SpringApplication.run(API.class, args);
}