MigrateTask
MMO\admin\tasks · 1 symbol · generated 5 Oct 2026
MigrateTask
MigrateTask.php:32Apply the database patches a target has not run yet -- exactly once each, in order.
- Namespace
MMO\admin\tasks- Extends
- aDatabaseTask
Index
| folder | ||
| pattern | ||
| snapshot | ||
| apply($context) | ||
| getDescription() | ||
| getPending($context, $excludeApplied) | ||
| isNeeded($context) | ||
| isRollbackCritical() | A database left half-migrated is the one failure nobody should discover from a user's bug report. | |
| plan($context) | ||
| rollback($context) | Put the database back where it was before the first patch ran. | |
| verify($context) | ||
| __construct($folder, $pattern, $snapshot) |
Properties3
folder
- Type
- string
pattern
- Type
- string
snapshot
- Type
- bool
Methods9
apply($context)
MigrateTask.php:57getDescription()
MigrateTask.php:42| returns | string |
getPending($context, $excludeApplied)
MigrateTask.php:128isNeeded($context)
MigrateTask.php:44isRollbackCritical()
MigrateTask.php:111A database left half-migrated is the one failure nobody should discover from a user's bug report.
| returns | bool |
plan($context)
MigrateTask.php:48rollback($context)
MigrateTask.php:93Put the database back where it was before the first patch ran.
verify($context)
MigrateTask.php:113__construct($folder, $pattern, $snapshot)
MigrateTask.php:33Inherited members (41)
| Constants | Declared by | Description | |
|---|---|---|---|
ALERT | iLogLevel | Alert: Action must be taken immediately. | |
ALL | iLogLevel | Mask for all | |
ALL_PLUS | iLogLevel | debug everything | |
BACKTRACE | iLogLevel | ||
CRITICAL | iLogLevel | Critical: Critical conditions. | |
DEBUG | iLogLevel | Debug: Detailed debug information. | |
DEEP | iLogLevel | debug everything with arguments | |
EMERGENCY | iLogLevel | Emergency: System is unusable. | |
ERROR | iLogLevel | Error: Runtime errors that do not require immediate action but should typically be logged and monitored. | |
ERROR_PLUS | iLogLevel | Mask for all error | |
FATAL | iLogLevel | Mask for all fatal error | |
INFO | iLogLevel | Info: Interesting events. | |
INFO_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
MEMORY | iLogLevel | include backtrace object | |
NOTICE | iLogLevel | Notice: Normal but significant events. | |
NOTICE_PLUS | iLogLevel | Mask for all errors/warning/notices/info | |
REQUIRED | aDatabaseTask | ||
TRACE | iLogLevel | include backtrace as origins | |
WARNING | iLogLevel | Warning: Exceptional occurrences that are not errors. | |
WARNING_PLUS | iLogLevel | Mask for all errors and warnings |
| Properties | Declared by | Description | |
|---|---|---|---|
verbosity | aDeployTask |
| Methods | Declared by | Description | |
|---|---|---|---|
alert($message, $context) | aDeployTask | Action must be taken immediately. | |
backtraces($message, $context) | aDeployTask | Force-log a message at INFO level together with a full stack trace/memory snapshot (iLogLevel::BACKTRACE), bypassing the verbosity mask entirely (any non-zero verbosity is enough to trigger it). | |
critical($message, $context) | aDeployTask | Critical conditions. No-op if CRITICAL is currently filtered out by the verbosity mask. | |
debug($message, $context) | aDeployTask | Detailed debug information. | |
debugName() | aDeployTask | ||
emergency($message, $context) | aDeployTask | System is unusable. No-op if EMERGENCY is currently filtered out by the verbosity mask. | |
error($message, $context) | aDeployTask | Runtime errors that do not require immediate action but should typically be logged and monitored. | |
getDatabase($context) | aDatabaseTask | ||
getName() | aDeployTask | ||
getRepository($context) | aDatabaseTask | ||
getShell($context) | aDatabaseTask | ||
getVerbosity() | aDeployTask | ||
info($message, $context) | aDeployTask | Interesting events. No-op if INFO is currently filtered out by the verbosity mask. | |
isChange() | aDeployTask | Whether running this task CHANGES anything. | |
log($level, $message, $context) | aDeployTask | Logs with an arbitrary level. | |
notice($message, $context) | aDeployTask | Normal but significant events. | |
setVerbosity($verb) | aDeployTask | Set the current verbosity mask, replacing whatever it was before. | |
snapshot($context) | aDatabaseTask | Take a snapshot of the target's database and record it on the context, so whatever comes next is reversible. | |
testVerbosity($level) | aDeployTask | Test whether a given level (or set of levels) is currently enabled by this instance's verbosity mask. | |
warning($message, $context) | aDeployTask | Exceptional occurrences that are not errors. |