Skip to main content
Module

x/typeorm/src/commands/MigrationGenerateCommand.ts>MigrationGenerateCommand

Forked from https://github.com/typeorm/typeorm
Latest
class MigrationGenerateCommand
implements [yargs.CommandModule]
import { MigrationGenerateCommand } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/commands/MigrationGenerateCommand.ts";

Generates a new migration file with sql needs to be executed to update schema.

Properties

aliases: string
command: string
describe: string

Methods

builder(args: yargs.Argv)
handler(args: yargs.Arguments)

Static Methods

protected
getTemplate(
name: string,
timestamp: number,
upSqls: string[],
downSqls: string[],
): string

Gets contents of the migration file.