Clean
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package be.vandewalleh.migrations
|
||||
|
||||
import be.vandewalleh.features.Feature
|
||||
import org.flywaydb.core.Flyway
|
||||
import org.kodein.di.Kodein
|
||||
import org.kodein.di.KodeinAware
|
||||
import org.kodein.di.generic.instance
|
||||
import javax.sql.DataSource
|
||||
|
||||
class Migration(override val kodein: Kodein) : Feature(kodein) {
|
||||
class Migration(override val kodein: Kodein) : KodeinAware {
|
||||
|
||||
override fun execute() {
|
||||
fun migrate() {
|
||||
val dataSource by instance<DataSource>()
|
||||
val flyway = Flyway.configure()
|
||||
.dataSource(dataSource)
|
||||
|
||||
Reference in New Issue
Block a user