Skip to main content

MigrationOptions

MigrationOptions

Configuration for generating a new migration script via generateMigration.

Signature
interface MigrationOptions {
name: string;
outputDir?: string;
}

name

property
string

The name of the migration. The resulting migration script will be named {TIMESTAMP}-{name}.ts.

outputDir

property
string

The output directory of the generated migration scripts.