Documentation

v442 extends migration

Migration to v4.4.2

Table of Contents

$db Database object database
$config System config object config
$isCli CLI execution flag bool
$requiredResult Result of pre-executed migration, false if one failed bool
alterTablesAfter() Update inedit data for articles bool
required() Returns a list of migrations which have to be executed before array
onDatabase() Returns a list of database driver names the migration should be executed to, default is MySQL/ MariaDB and Postgres array
__construct() Constructor method bool
getConfig() Config object getter config
getDB() Config object getter config
isCli() Config object getter config
isRequired() Migration execution required due to system version bool
process() Execute migrations bool
output() Output of migration messages void
getNewVersion() Returns new version, e. g. from version.txt string
init() Pre-Initializing bool
required() Returns a list of migrations which have to be executed before array
alterTablesAfter() Execute additional database table changes bool
updatePermissionsAfter() Executes additional permission updates bool
updateFileSystem() Execute additional file system updates bool
updateSystemConfig() Execute additional system config updates bool
onDatabase() Returns a list of database driver names the migration should be executed to, default is MySQL/ MariaDB and Postgres array
getNamespace() Returns migration class namespace string

Properties

$isCli

CLI execution flag

private bool $isCli = null

$requiredResult

Result of pre-executed migration, false if one failed

protected bool $requiredResult = true

Methods

alterTablesAfter()

Update inedit data for articles

protected alterTablesAfter( ) : bool
Return values
bool

required()

Returns a list of migrations which have to be executed before

protected required( ) : array
Return values
array

onDatabase()

Returns a list of database driver names the migration should be executed to, default is MySQL/ MariaDB and Postgres

protected onDatabase( ) : array
Tags
since
Return values
array

__construct()

Constructor method

public final __construct( ) : bool
Return values
bool

isRequired()

Migration execution required due to system version

public final isRequired( ) : bool
Return values
bool

process()

Execute migrations

public final process( ) : bool
Return values
bool

output()

Output of migration messages

protected final output( $str : string [, $error : bool = false ] ) : void
Parameters
$str : string
$error : bool = false
Tags
since

getNewVersion()

Returns new version, e. g. from version.txt

protected getNewVersion( ) : string
Return values
string

init()

Pre-Initializing

protected init( ) : bool
Return values
bool

required()

Returns a list of migrations which have to be executed before

protected required( ) : array
Return values
array

alterTablesAfter()

Execute additional database table changes

protected alterTablesAfter( ) : bool
Return values
bool

updatePermissionsAfter()

Executes additional permission updates

protected updatePermissionsAfter( ) : bool
Return values
bool

updateFileSystem()

Execute additional file system updates

protected updateFileSystem( ) : bool
Return values
bool

updateSystemConfig()

Execute additional system config updates

protected updateSystemConfig( ) : bool
Return values
bool

onDatabase()

Returns a list of database driver names the migration should be executed to, default is MySQL/ MariaDB and Postgres

protected onDatabase( ) : array
Tags
since
Return values
array

getNamespace()

Returns migration class namespace

public static getNamespace( $version : string ) : string
Parameters
$version : string
Tags
static
Return values
string

Search results