migrate task

use this command line task to deploy and rollback changes

 Methods

catches requested method call and runs as needed

__call(string $name, string $args) 

Parameters

$name

string

name of the method to run

$args

string

any additional method arguments (not used here!)

sets the properties by grabbing Cli options

__construct() 

Shows basic help instructions for using migrate in oil

help() 

migrates item to current config version

_current(string $name, string $type) 

Parameters

$name

string

name of the type (in case of app, it's 'default')

$type

string

type (app, module or package)

migrates item down to the given version

_down($name, $type) 

Parameters

$name

string

$type

string

migrates to the latest version unless -version is specified

_run(string $name, string $type) 

Parameters

$name

string

name of the type (in case of app, it's 'default')

$type

string

type (app, module or package)

migrates item up to the given version

_up($name, $type) 

Parameters

$name

string

$type

string

 Properties

 

<p>if true, migrate the app</p>

$default : boolean

 

<p>list of migrations executed</p>

$executed : array

 

<p>number of modules migrated</p>

$module_count : int

 

<p>list of modules to migrate</p>

$modules : array

 

<p>number of packages migrated</p>

$package_count : int

 

<p>list of packages to migrate</p>

$packages : array

 

<p>flag to indicate a rerun is needed</p>

$rerun : bool