4d01e13a84
* Revert "Revert structured logging 2 (#1240)"
This reverts commit 78ecaeffcb.
* Logging should not be bundled into core shared directory
* making sure observability stuff isnt bundled into frontend
Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
16 lines
400 B
JavaScript
16 lines
400 B
JavaScript
const knex = require('@/db/knex')
|
|
const { logger } = require('@/logging/logging')
|
|
|
|
/** @type {import('yargs').CommandModule} */
|
|
const command = {
|
|
command: 'up',
|
|
describe: 'Run next migration that has not yet been run',
|
|
async handler() {
|
|
logger.info('Running next migration...')
|
|
await knex.migrate.up()
|
|
logger.info('Completed running next migration')
|
|
}
|
|
}
|
|
|
|
module.exports = command
|