Files
speckle-server/packages/server/modules/cli/commands/db/migrate.ts
T
Kristaps Fabians Geikins a9a313ee63 feat(server): cli and cross-server-sync multiregion support (#3527)
* feat(server): cross-server-sync multiregion ready

* fixed various db commands

* db cli works

* final changes
2024-11-22 19:52:58 +01:00

21 lines
564 B
TypeScript

import { noop } from 'lodash'
import { 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