Files
speckle-server/packages/server/modules/cli/commands/db/migrate/down.js
T
Iain Sproat 78ecaeffcb Revert structured logging 2 (#1240)
* Revert "'@' shortcut must come after it is configured in bootstrap (#1239)"

This reverts commit 967329473f.

* Revert "Structured logging (attempt 2) (#1234)"

This reverts commit 444d2ca7dd.
2022-12-05 15:46:09 +00:00

15 lines
310 B
JavaScript

const knex = require('@/db/knex')
/** @type {import('yargs').CommandModule} */
const command = {
command: 'down',
describe: 'Undo last run migration',
async handler() {
console.log('Undoing last migration...')
await knex.migrate.down()
console.log('...done')
}
}
module.exports = command