feature: add forceAllDown to migration

This commit is contained in:
2019-08-01 01:36:59 +02:00
parent 528f2b6daa
commit 63a22ef46a
2 changed files with 26 additions and 2 deletions

View File

@@ -69,7 +69,17 @@ class MigrationTest(): TestAbstract() {
val resources = File(this::class.java.getResource("/sql/real_migrations").toURI())
Migrations(resources, getConnextion()).apply {
run().apply {
size `should be equal to` 2
size `should be equal to` 1
}
}
}
@Test
fun `run migrations force down`() {
val resources = File(this::class.java.getResource("/sql/real_migrations").toURI())
Migrations(resources, getConnextion()).apply {
forceAllDown().apply {
size `should be equal to` 1
}
}
}