Copied!

MigrationStorage

MigrationStorage.php : 13

Methods

publicloadAll()

MigrationStorage.php : 25

Load all migration present in storage.

public loadAll() : array<string|int, Migration>

Return values

array<string|int, Migration>

publicloadOne()

MigrationStorage.php : 18

Load a single migration from storage.

public loadOne(string $name) : Migration|null

Parameters

Name Type Default value Description
$name string - -

Return values

Migration|null

publicstore()

MigrationStorage.php : 32

Store a migration in storage.

public store(Migration $migration) : void

Parameters

Name Type Default value Description
$migration Migration - -
Tags
Throws
MigrationAlreadyExistsException

if adding migration would cause an existing migration to become overwritten