fix: migrations
This commit is contained in:
@@ -16,8 +16,8 @@ data class Function(
|
||||
override var doExecute: Action? = null
|
||||
|
||||
init {
|
||||
if (up.name !== down.name) {
|
||||
throw Exception("UP and DOWN migration must be the same")
|
||||
if (up.name != down.name) {
|
||||
throw Exception("UP and DOWN migration must have the same name [${up.name} !== ${down.name}]")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,4 +79,8 @@ data class Function(
|
||||
it.doExecute = this.doExecute
|
||||
}
|
||||
}
|
||||
|
||||
infix fun `is different from`(other: DefinitionFunction): Boolean {
|
||||
return other.script != this.up.script
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user