Files
speckle-server/packages/server/modules/cli/commands/db/migrate.ts
T
Kristaps Fabians Geikins 4b06f42db7 chore(server): run TS files directly (no compilation) (#5134)
* sort of works

* type fixes

* added option to run old way too
2025-07-23 11:20:40 +02:00

21 lines
572 B
TypeScript

import { noop } from 'lodash-es'
import type { CommandModule } from 'yargs'
const command: CommandModule = {
command: 'migrate',
describe: 'Migration specific commands',
builder(yargs) {
return yargs
.commandDir('migrate', { extensions: ['js', 'ts'] })
.demandCommand()
.option('regionKey', {
type: 'string',
describe:
'Region key to run migrations for. If not set, will run on all registered DBs. If set to "main", will only run in main DB. Can be comma-delimited.'
})
},
handler: noop
}
export = command