MigrationStateRepository
final class MigrationStateRepository (View source)
Manages the persistent history of applied migrations.
The repository uses the same DatabaseDriverInterface instance as Schema so state reads and writes target the active schema connection.
Constants
| private TABLE |
|
Methods
Creates the migrations state table when it does not already exist.
void
applied()
Returns identifiers stored in the persistent migration history.
array
record(string $identifier)
Records an identifier after its migration has completed successfully.
void
Details
ensureTable
void
ensureTable()
Creates the migrations state table when it does not already exist.
applied
array
applied()
Returns identifiers stored in the persistent migration history.
record
void
record(string $identifier)
Records an identifier after its migration has completed successfully.