Property | Type | Description | |
---|---|---|---|
$console | Scalr\Upgrade\Console | Console | |
$db | ADODB_mysqli | Database instance |
Method | Description | |
---|---|---|
__construct ( object $opt ) | Constructor | |
checkFilesystemStorage ( ) | Checks filesystem storage | |
checkPid ( ) : boolean | Checks and creates pid file | |
getPathToUpdates ( ) : string | Gets path to updates | |
removePid ( ) | Removes pid | |
run ( ) : boolean | Runs upgrade process |
Method | Description | |
---|---|---|
applyUpdate ( Scalr\Upgrade\AbstractUpdate $upd ) : boolean | Applies update | |
getLastDate ( ) : string | Gets last datetime which has been processed | |
loadUpdates ( ) | Loads updates from the implemented classes |
Method | Description | |
---|---|---|
fetchMysqlStatusBefore ( string $service = 'adodb' ) | Getches statuses of the previous updates for specified database service from container | |
fetchStatusBefore ( ) | Fetches statuses of the previous updates | |
isOutdatedPid ( string $timestamp ) : boolean | Checks if pid is outdated |
protected applyUpdate ( Scalr\Upgrade\AbstractUpdate $upd ) : boolean | ||
$upd | Scalr\Upgrade\AbstractUpdate | Update to apply |
return | boolean | Returns true if update is successful, false otherwise |
public static checkFilesystemStorage ( ) |
protected getLastDate ( ) : string | ||
return | string | Returns UTC in format 'YYYY-MM-DD HH:ii:ss' |
public static getPathToUpdates ( ) : string | ||
return | string | Returns path to updates without trailing slash |
protected Console,Scalr\Upgrade $console | ||
return | Scalr\Upgrade\Console |