Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MigrationGenerateCommand

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

Hierarchy

  • MigrationGenerateCommand

Implements

  • any

Index

Properties

aliases

aliases: string = "migrations:generate"

command

command: string = "migration:generate"

describe

describe: string = "Generates a new migration file with sql needs to be executed to update schema."

Methods

builder

  • builder(args: yargs.Argv): any

handler

  • handler(args: yargs.Arguments): Promise<void>

Static Protected getTemplate

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

Generated using TypeDoc