Documentation

RunCommand
in package

Read onlyYes

Runs migrations.

Table of Contents

Methods

__construct()  : mixed
execute()  : bool
Run the given migrations.

Methods

__construct()

public __construct(PDO $connection, string $insertMigrationResultStmt, string $insertMigrationResultWithErrorStmt[, string $nameParam = "name" ][, string $statusParam = "status" ][, string $versionParam = "version" ][, string $durationParam = "duration_ms" ][, string $errorMessageParam = "error_text" ]) : mixed
Parameters
$connection : PDO
$insertMigrationResultStmt : string
$insertMigrationResultWithErrorStmt : string
$nameParam : string = "name"
$statusParam : string = "status"
$versionParam : string = "version"
$durationParam : string = "duration_ms"
$errorMessageParam : string = "error_text"

execute()

Run the given migrations.

public execute(array<string|int, MigrationInterface$pendingMigrations) : bool
Parameters
$pendingMigrations : array<string|int, MigrationInterface>
Return values
bool

        
On this page

Search results