$db
$db : \Pop\Db\Adapter\AbstractAdapter
Database adapter
Sql migrator class
$db : \Pop\Db\Adapter\AbstractAdapter
Database adapter
__construct(\Pop\Db\Adapter\AbstractAdapter $db, string $path)
Constructor
Instantiate the migrator object
\Pop\Db\Adapter\AbstractAdapter | $db | |
string | $path |
getDb() : \Pop\Db\Adapter\AbstractAdapter
Get the DB adapter
db() : \Pop\Db\Adapter\AbstractAdapter
Get the DB adapter (alias method)
run(mixed $steps = 1) : \Pop\Db\Sql\Migrator
Run the migrator (up/forward direction)
mixed | $steps |
runAll() : \Pop\Db\Sql\Migrator
Run all the migrator (up/forward direction)
rollback(mixed $steps = 1) : \Pop\Db\Sql\Migrator
Roll back the migrator (down/backward direction)
mixed | $steps |
rollbackAll() : \Pop\Db\Sql\Migrator
Roll back all the migrator (down/backward direction)
setPath(string $path) : \Pop\Db\Sql\Migrator
Set the migration path and get migration files
string | $path |