seizma
07/20/2020, 2:00 PMimport com.improve_future.harmonica.core.AbstractMigration
import org.jetbrains.exposed.sql.SchemaUtils.create
import org.jetbrains.exposed.sql.SchemaUtils.drop
import org.jetbrains.exposed.sql.Table
object Cities : Table("cities") {
val id = integer("id")
val name = varchar("name", 20)
override val primaryKey = PrimaryKey(id)
}
/**
* Migration
*/
object : AbstractMigration() {
override fun up() {
create(Cities)
}
override fun down() {
drop(Cities)
}
}
but when I try to run harmonicaUp it says
> Task :harmonicaUp FAILED
Task ':harmonicaUp' is not up-to-date because:
Task has not declared any outputs despite executing actions.
:harmonicaUp (Thread[Execution worker for ':',5,main]) completed. Took 0.002 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':harmonicaUp'.
> org/jetbrains/kotlin/scripting/repl/GenericReplCompiler
tjohnn
07/20/2020, 6:09 PM