CreateCommand
in package
Read onlyYes
Creates a migration stub.
The migration must be implemented after it is created.
Table of Contents
Methods
- __construct() : mixed
- execute() : bool
Methods
__construct()
public
__construct(FileWriterInterface $fileWriter, DateTimeImmutable $dateTime) : mixed
Parameters
- $fileWriter : FileWriterInterface
- $dateTime : DateTimeImmutable
execute()
public
execute(string $migrationName, string $migrationsDir) : bool
Parameters
- $migrationName : string
-
Name of migration to create
- $migrationsDir : string
-
Migrations target directory