New-Migration

Creates a new migration script.

Syntax

New-Migration [-Name] <String[]> [-Path] <String> [<CommonParameters>]

Description

Creates a migration script with a given name. The script is prefixed with the current timestamp (e.g. yyyyMMddHHmmss). The script is created in $Path\$Database\Migrations.

Parameters

Name Type Description Required? Pipeline Input Default Value
Name String[]

The name of the migration to create.

true false
Path String

The path to the directory where the migration should be saved.

true false