Migrates.
Protected Properties | |
DB | $db |
string | $dir |
Table | $table |
Public Static Methods | |
magic static self | factory (DB $db, string $dir) |
; More... | |
Public Methods | |
__construct (DB $db, string $dir) | |
null string | down (string $to=null) |
Migrates down within a transaction. More... | |
null string | getCurrent () |
Returns the sequence identifier of the most recent upgrade. More... | |
string | getDir () |
Table | getTable () |
Returns the __migrations__ table, creating it if needed. More... | |
null string | up (string $to=null) |
Migrates up within a transaction. More... | |
Protected Methods | |
MigrationInterface | getMigration (string $file) |
string[] | glob () |
Scans the migration directory for <SEQUENCE>.php files. More... | |
null string down | ( | string | $to = null | ) |
Migrates down within a transaction.
string | $to | Migration sequence identifier, or null to step down once. |
null string getCurrent | ( | ) |
Returns the sequence identifier of the most recent upgrade.
|
final |
|
protected |
array | $spec |
|
protected |
Scans the migration directory for <SEQUENCE>.php
files.
null string up | ( | string | $to = null | ) |
Migrates up within a transaction.
null | string | $to | Migration sequence identifier, or null for all upgrades. |