78ecaeffcb
* Revert "'@' shortcut must come after it is configured in bootstrap (#1239)" This reverts commit967329473f. * Revert "Structured logging (attempt 2) (#1234)" This reverts commit444d2ca7dd.
15 lines
310 B
JavaScript
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
|