refactor: remove flyway migration repair

This commit is contained in:
Gauthier Roebroeck 2022-03-03 11:04:53 +08:00
parent d10e14bc19
commit 8272cbe52a

View file

@ -1,19 +0,0 @@
package org.gotson.komga.infrastructure.datasource
import org.flywaydb.core.Flyway
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
// TODO: remove after March 2022 - added to fix the 0.149.0 changed migration
// We should not rely on flyway repair on a permanent basis!
@Configuration
class FlywayConfiguration {
@Bean
fun cleanMigrateStrategy() =
FlywayMigrationStrategy { flyway: Flyway ->
flyway.repair()
flyway.migrate()
}
}