63e6581162
This reverts commit 84cb74e8b3.
15 lines
319 B
JavaScript
15 lines
319 B
JavaScript
const knex = require('@/db/knex')
|
|
|
|
/** @type {import('yargs').CommandModule} */
|
|
const command = {
|
|
command: 'rollback',
|
|
describe: 'Roll back all migrations',
|
|
async handler() {
|
|
console.log('Rolling back...')
|
|
await knex.migrate.rollback(null, true)
|
|
console.log('...done')
|
|
}
|
|
}
|
|
|
|
module.exports = command
|