__construct()
getAdapter()
getPath()
migrate()
rollback()
getFiles()
findMigrations()
runMigrations()
$adapter
$path
Database Migration.
package | Cactus |
---|---|
author | Dave Widmer |
__construct(string $path, Adapter $adapter)
inherited_from | \Cactus\Task::__construct() |
---|
string
The path to the tasks folder
getAdapter() : \Cactus\Adapter
inherited_from | \Cactus\Task::getAdapter() |
---|
\Cactus\Adapter
The adapter used to connect to the data source.getPath() : string
inherited_from | \Cactus\Task::getPath() |
---|
string
The absolute path to the tasks directory.migrate(string $from) : array
string
The migration version
array
List of debug style messages.rollback(string $to) : array
string
The version to rollback to
array
List if debug style messagesgetFiles(boolean $reverse) : array
inherited_from | \Cactus\Task::getFiles() |
---|
boolean
Find in reverse order?
array
File listfindMigrations(string $version, array $files) : array
string
The version limit
array
The files to search through
array
List of migration filesrunMigrations(array $migrations, string $fn) : array
array
The list of migrations
string
The migration function to run (up, down)
array
An array of output messages$adapter : \Cactus\Adapter
inherited_from | \Cactus\Task::$$adapter |
---|
$path : string
inherited_from | \Cactus\Task::$$path |
---|