mirror of
https://github.com/gotson/komga.git
synced 2026-04-28 09:57:02 +02:00
refactor: remove flyway migration repair
This commit is contained in:
parent
d10e14bc19
commit
8272cbe52a
1 changed files with 0 additions and 19 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue