Files
speckle-server/packages/server/modules/cli/commands/db/migrate/up.js
T
2022-03-29 16:30:49 +03:00

15 lines
312 B
JavaScript

const knex = require('@/db/knex')
/** @type {import('yargs').CommandModule} */
const command = {
command: 'up',
describe: 'Run next migration that has not yet been run',
async handler() {
console.log('Running...')
await knex.migrate.up()
console.log('...done')
}
}
module.exports = command