2022-01-27 23:40:31 +13:00
|
|
|
const { migrate, MIGRATIONS } = require("../../migrations")
|
2022-01-24 23:48:59 +13:00
|
|
|
|
|
|
|
exports.migrate = async ctx => {
|
|
|
|
const options = ctx.request.body
|
|
|
|
// don't await as can take a while, just return
|
|
|
|
migrate(options)
|
|
|
|
ctx.status = 200
|
|
|
|
}
|
2022-01-27 23:40:31 +13:00
|
|
|
|
|
|
|
exports.fetchDefinitions = async ctx => {
|
|
|
|
ctx.body = MIGRATIONS
|
|
|
|
ctx.status = 200
|
|
|
|
}
|