Interface ICreateNewMigrationOptions

Options for 'createNewMigration()' and 'createNewMigrationSync()' functions.

interface ICreateNewMigrationOptions {
    dir?: Nilable<string>;
    footer?: Nilable<string | MigrationFileStringBuilder>;
    header?: Nilable<string | MigrationFileStringBuilder>;
    overwrite?: Nilable<boolean>;
    typescript?: Nilable<boolean>;
}

Properties

dir?: Nilable<string>

The output directory. Default: Current work directory.

footer?: Nilable<string | MigrationFileStringBuilder>

Custom footer.

header?: Nilable<string | MigrationFileStringBuilder>

Custom header.

overwrite?: Nilable<boolean>

Overwrite if file exist or not.

typescript?: Nilable<boolean>

Generate TypeScript (true) or JavaScript (false file).

Generated using TypeDoc