__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() |
|---|
stringThe path to the tasks folder
getAdapter() : \Cactus\Adapter
| inherited_from | \Cactus\Task::getAdapter() |
|---|
\Cactus\AdapterThe adapter used to connect to the data source.getPath() : string
| inherited_from | \Cactus\Task::getPath() |
|---|
stringThe absolute path to the tasks directory.migrate(string $from) : array
stringThe migration version
arrayList of debug style messages.rollback(string $to) : array
stringThe version to rollback to
arrayList if debug style messagesgetFiles(boolean $reverse) : array
| inherited_from | \Cactus\Task::getFiles() |
|---|
booleanFind in reverse order?
arrayFile listfindMigrations(string $version, array $files) : array
stringThe version limit
arrayThe files to search through
arrayList of migration filesrunMigrations(array $migrations, string $fn) : array
arrayThe list of migrations
stringThe migration function to run (up, down)
arrayAn array of output messages$adapter : \Cactus\Adapter
| inherited_from | \Cactus\Task::$$adapter |
|---|
$path : string
| inherited_from | \Cactus\Task::$$path |
|---|