PHP Class Neos\Flow\Persistence\Doctrine\Migrations\Version20130319131500

Inheritance: extends Doctrine\DBAL\Migrations\AbstractMigration
Datei anzeigen Open project: neos/flow-development-collection

Public Methods

Method Description
down ( Doctrine\DBAL\Schema\Schema $schema ) : void
up ( Doctrine\DBAL\Schema\Schema $schema ) : void

Protected Methods

Method Description
getRoleIdentifierMap ( array $map ) : array Returns the given array indexed by "old" role identifiers with the "new" identifiers added as values to their matching index.
loadRolesFromPolicyFiles ( ) : array Reads all Policy.yaml files below Packages, extracts the roles and prepends them with the package key "guessed" from the path.
migrateAccountRolesDown ( ) : void Generate SQL statements to migrate accounts down to embedded roles.
migrateAccountRolesUp ( ) : void Generate SQL statements to migrate accounts up to referenced roles.

Method Details

down() public method

public down ( Doctrine\DBAL\Schema\Schema $schema ) : void
$schema Doctrine\DBAL\Schema\Schema
return void

getRoleIdentifierMap() protected method

Returns the given array indexed by "old" role identifiers with the "new" identifiers added as values to their matching index.
protected getRoleIdentifierMap ( array $map ) : array
$map array
return array

loadRolesFromPolicyFiles() protected method

Reads all Policy.yaml files below Packages, extracts the roles and prepends them with the package key "guessed" from the path.
protected loadRolesFromPolicyFiles ( ) : array
return array

migrateAccountRolesDown() protected method

Generate SQL statements to migrate accounts down to embedded roles.
protected migrateAccountRolesDown ( ) : void
return void

migrateAccountRolesUp() protected method

Generate SQL statements to migrate accounts up to referenced roles.
protected migrateAccountRolesUp ( ) : void
return void

up() public method

public up ( Doctrine\DBAL\Schema\Schema $schema ) : void
$schema Doctrine\DBAL\Schema\Schema
return void