1
0
Fork 0
mirror of synced 2024-06-22 04:10:54 +12:00
budibase/packages/server/src/api/controllers/migrations.js

14 lines
307 B
JavaScript
Raw Normal View History

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
}