Свойство | Тип | Описание | |
---|---|---|---|
$connectionID | the application component ID that specifies the database connection for storing migration information. Defaults to 'db'. | ||
$dataPatchPath | the directory that stores the migrations. This must be specified in terms of a full path, and the corresponding directory must exist. opt/openeyes/Openeyes-Institution/env/50_prod/patch | ||
$defaultAction | the default command action. It defaults to 'up'. | ||
$interactive | whether to execute the migration in an interactive mode. Defaults to true. Set this to false when performing migration in a cron job or background process. | ||
$templateFile | the path of the template file for generating new migrations. This must be specified in terms of a full path (e.g. /opt/openeyese/Openeyes-Institution/template). If not set, an internal template will be used. |
Метод | Описание | |
---|---|---|
actionCreate ( $args ) | ||
actionDown ( $args ) | ||
actionHistory ( $args ) | ||
actionMark ( $args ) | ||
actionNew ( $args ) | ||
actionRedo ( $args ) | ||
actionTo ( $args ) | ||
actionUp ( $args ) | ||
beforeAction ( $action, $params ) | ||
confirm ( $message, $default = false ) | ||
getHelp ( ) |
Метод | Описание | |
---|---|---|
createMigrationHistoryTable ( ) | ||
getDbConnection ( ) | ||
getMigrationHistory ( $limit ) | ||
getNewMigrations ( ) | ||
getTemplate ( ) | ||
instantiateMigration ( $class ) | ||
migrateDown ( $class ) | ||
migrateUp ( $class ) |
public $connectionID |
public $dataPatchPath |
public $defaultAction |
public $interactive |