IMigrationGenerator
Implemented by
Index
Methods
createStatement
Parameters
sql: string
padLeft: number
Returns string
generate
Generates the full contents of migration file. Uses
generateMigrationFile
to get the file contents.Parameters
diff: MigrationDiff
optionalpath: string
optionalname: string
Returns Promise<[string, string]>
generateMigrationFile
Returns the file contents of given migration.
Parameters
className: string
diff: MigrationDiff
Returns string
Creates single migration statement. By default adds
this.addSql(sql);
to the code.