v521rc1
extends migration
in package
Migration to v5.2.1-rc1
Tags
Table of Contents
- $requiredResult : bool
- Result of pre-executed migration, false if one failed
- $config : config
- System config object
- $db : database
- Database object
- $isCli : bool
- CLI execution flag
- __construct() : bool
- Constructor method
- getNamespace() : string
- Returns migration class namespace
- isRequired() : bool
- Migration execution required due to system version
- optimizeTables() : bool
- Führt Optimierung der Datenbank-Tabellen durch
- process() : bool
- Execute migrations
- alterTablesAfter() : bool
- Execute additional database table changes
- defaultAddSystemOptions() : bool
- neue System-Optionen bei Update erzeugen
- defaultAlterTables() : bool
- defaultUpdatePermissions() : bool
- aktualisiert Berechtigungen
- getConfig() : config
- Config object getter
- getDB() : config
- Config object getter
- getNewVersion() : string
- Returns new version, e. g. from version.txt
- getPreviewsVersion() : string
- return preview version string
- init() : bool
- Pre-Initializing
- isCli() : config
- Config object getter
- onDatabase() : array<string|int, mixed>
- Returns a list of database driver names the migration should be executed to, default is MySQL/ MariaDB and Postgres
- output() : void
- Output of migration messages
- updateFileSystem() : bool
- Execute additional file system updates
- updatePermissionsAfter() : bool
- Executes additional permission updates
- updateSystemConfig() : bool
- Execute additional system config updates
Properties
$requiredResult
Result of pre-executed migration, false if one failed
protected
bool
$requiredResult
= true
$config
System config object
private
config
$config
$db
Database object
private
database
$db
$isCli
CLI execution flag
private
bool
$isCli
= null
Methods
__construct()
Constructor method
public
final __construct() : bool
Return values
bool —getNamespace()
Returns migration class namespace
public
static getNamespace(string $version) : string
Parameters
- $version : string
Tags
Return values
string —isRequired()
Migration execution required due to system version
public
final isRequired() : bool
Return values
bool —optimizeTables()
Führt Optimierung der Datenbank-Tabellen durch
public
final optimizeTables() : bool
Tags
Return values
bool —process()
Execute migrations
public
final process() : bool
Return values
bool —alterTablesAfter()
Execute additional database table changes
protected
alterTablesAfter() : bool
Return values
bool —defaultAddSystemOptions()
neue System-Optionen bei Update erzeugen
protected
final defaultAddSystemOptions() : bool
Return values
bool —defaultAlterTables()
protected
final defaultAlterTables() : bool
Tags
Return values
bool —defaultUpdatePermissions()
aktualisiert Berechtigungen
protected
final defaultUpdatePermissions() : bool
Return values
bool —getConfig()
Config object getter
protected
final getConfig() : config
Return values
config —getDB()
Config object getter
protected
final getDB() : config
Return values
config —getNewVersion()
Returns new version, e. g. from version.txt
protected
getNewVersion() : string
Return values
string —getPreviewsVersion()
return preview version string
protected
getPreviewsVersion() : string
Tags
Return values
string —init()
Pre-Initializing
protected
init() : bool
Return values
bool —isCli()
Config object getter
protected
final isCli() : config
Return values
config —onDatabase()
Returns a list of database driver names the migration should be executed to, default is MySQL/ MariaDB and Postgres
protected
onDatabase() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —output()
Output of migration messages
protected
final output(string $str[, bool $log = false ]) : void
Parameters
- $str : string
- $log : bool = false
Tags
Return values
void —updateFileSystem()
Execute additional file system updates
protected
updateFileSystem() : bool
Return values
bool —updatePermissionsAfter()
Executes additional permission updates
protected
updatePermissionsAfter() : bool
Return values
bool —updateSystemConfig()
Execute additional system config updates
protected
updateSystemConfig() : bool