Files
speckle-server/packages/server/modules/cli/commands/db/migrate/up.ts
T
2024-10-25 11:05:43 +03:00

16 lines
390 B
TypeScript

import knex from '@/db/knex'
import { logger } from '@/logging/logging'
import { CommandModule } from 'yargs'
const command: CommandModule = {
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')
}
}
export = command