Skip to main content

GenerateMigration

generateMigration

Generates a new migration file based on any schema changes (e.g. adding or removing CustomFields). See TypeORM migration docs for more information about the underlying migration mechanism.

Signature
function generateMigration(userConfig: Partial<VendureConfig>, options: MigrationOptions): Promise<string | undefined>

Parameters

userConfig

parameter
Partial<VendureConfig>

options