class Version20160725000000 extends AbstractMigration implements LongRunningMigrationInterface (View source)

Traits

Properties

protected $app from  AbstractMigration
protected $validAttributes from  AbstractMigration
Connection $connection from  AbstractMigration
private string[] $delayedQueries

Methods

__construct(Version $version)

No description

upgradeSchema(Schema $schema)

Override this method when the database structure is upgraded using ONLY the DBAL Schema object.

upgradeDatabase()

Override this method when database schema is not upgraded, or when it's upgraded without using a Schema.

downgradeSchema(Schema $schema)

Override this method when the database structure is downgraded using ONLY the DBAL Schema object.

downgradeDatabase()

Override this method when database schema is not downgraded, or when it's downgraded without using a Schema.

void
up(Schema $schema)

{@inheritdoc}

void
postUp(Schema $schema)

{@inheritdoc}

void
down(Schema $schema)

{@inheritdoc}

void
postDown(Schema $schema)

{@inheritdoc}

output($message)

No description

refreshEntities($entities = null)

No description

refreshDatabaseTables($tables)

No description

refreshBlockType($btHandle)

No description

nullifyInvalidForeignKey(string $table, string $field, string $linkedTable, string $linkedField)

Set to NULL the fields in a table that reference not existing values of another table.

deleteInvalidForeignKey(string $table, string $field, string $linkedTable, string $linkedField)

Delete the records in a table whose field references not existing values of another table.

isAttributeHandleValid($categoryClass, $handle)

No description

createSinglePage(string $path, string $name = '', array $attributes = [], $global = false)

Create a new SinglePage (if it does not exist).

addColumnIfMissing(Schema $schema)

No description

migrateDrafts()

No description

addNotifications()

No description

prepareInvalidForeignKeys()

No description

nullifyInvalidForeignKeys()

No description

renameProblematicTables()

No description

migrateOldPermissions()

No description

migrateFileSetManagerPermissions($fsID, FileFolder $folder)

No description

updateDoctrineXmlTables()

No description

installOtherEntities()

No description

installEntities($entities)

No description

importAttributeKeys()

No description

migrateAttributeValue($atHandle, $avID)

No description

addAttributeValue($atID, $akID, $avID)

No description

importAttributeKeySettings($atID, $akID)

No description

importAttributeTypes()

No description

addDashboard()

No description

addBlockTypes()

No description

addTreeNodeTypes()

No description

installDesktops()

No description

updateWorkflows()

No description

installSite()

No description

splittedTrackingCode()

No description

addPermissions()

No description

cleanupOldPermissions()

No description

updateTopics()

No description

updateFileManager()

No description

updateJobs()

No description

setupSinglePages()

No description

installLocales()

No description

fixStacks()

No description

fixMultilingualPageRelations()

No description

int[]
getCollectionIdTrail(int $cID)

No description

executeDelayedQueries()

No description

fixMissingCategoryNames()

No description

Details

__construct(Version $version)

No description

Parameters

Version $version

upgradeSchema(Schema $schema)

Override this method when the database structure is upgraded using ONLY the DBAL Schema object.

Parameters

Schema $schema

upgradeDatabase()

Override this method when database schema is not upgraded, or when it's upgraded without using a Schema.

downgradeSchema(Schema $schema)

Override this method when the database structure is downgraded using ONLY the DBAL Schema object.

Parameters

Schema $schema

downgradeDatabase()

Override this method when database schema is not downgraded, or when it's downgraded without using a Schema.

final void up(Schema $schema)

{@inheritdoc}

Parameters

Schema $schema

Return Value

void

See also

\Doctrine\Migrations\AbstractMigration::up()

final void postUp(Schema $schema)

{@inheritdoc}

Parameters

Schema $schema

Return Value

void

See also

\Doctrine\Migrations\AbstractMigration::postUp()

final void down(Schema $schema)

{@inheritdoc}

Parameters

Schema $schema

Return Value

void

See also

\Doctrine\Migrations\AbstractMigration::down()

final void postDown(Schema $schema)

{@inheritdoc}

Parameters

Schema $schema

Return Value

void

See also

\Doctrine\Migrations\AbstractMigration::postDown()

protected output($message)

No description

Parameters

$message

protected refreshEntities($entities = null)

No description

Parameters

$entities

protected refreshDatabaseTables($tables)

No description

Parameters

$tables

protected refreshBlockType($btHandle)

No description

Parameters

$btHandle

protected nullifyInvalidForeignKey(string $table, string $field, string $linkedTable, string $linkedField)

Set to NULL the fields in a table that reference not existing values of another table.

Parameters

string $table

The table containing the problematic field

string $field

The problematic field

string $linkedTable

The referenced table

string $linkedField

The referenced field

protected deleteInvalidForeignKey(string $table, string $field, string $linkedTable, string $linkedField)

Delete the records in a table whose field references not existing values of another table.

Parameters

string $table

The table containing the problematic field

string $field

The problematic field

string $linkedTable

The referenced table

string $linkedField

The referenced field

protected isAttributeHandleValid($categoryClass, $handle)

No description

Parameters

$categoryClass
$handle

protected Page createSinglePage(string $path, string $name = '', array $attributes = [], $global = false)

Create a new SinglePage (if it does not exist).

Parameters

string $path

the single page path

string $name

the single page name

array $attributes

the attribute values (keys are the attribute handles, values are the attribute values)

$global

Return Value

Page

addColumnIfMissing(Schema $schema)

No description

Parameters

Schema $schema

migrateDrafts()

No description

addNotifications()

No description

protected prepareInvalidForeignKeys()

No description

protected deleteInvalidAttributeValuesForeignKeys()

No description

protected nullifyInvalidForeignKeys()

No description

protected renameProblematicTables()

No description

protected migrateOldPermissions()

No description

protected migrateFileManagerPermissions()

No description

protected migrateFileSetManagerPermissions($fsID, FileFolder $folder)

No description

Parameters

$fsID
FileFolder $folder

protected updateDoctrineXmlTables()

No description

protected prepareProblematicEntityTables()

No description

protected installOtherEntities()

No description

protected installEntities($entities)

No description

Parameters

$entities

protected importAttributeKeys()

No description

protected migrateAttributeValue($atHandle, $avID)

No description

Parameters

$atHandle
$avID

protected addAttributeValue($atID, $akID, $avID)

No description

Parameters

$atID
$akID
$avID

protected importAttributeKeySettings($atID, $akID)

No description

Parameters

$atID
$akID

protected importAttributeTypes()

No description

protected addDashboard()

No description

protected addBlockTypes()

No description

protected addTreeNodeTypes()

No description

protected installDesktops()

No description

protected updateWorkflows()

No description

protected installSite()

No description

protected splittedTrackingCode()

No description

protected addPermissions()

No description

protected cleanupOldPermissions()

No description

protected updateTopics()

No description

protected updateFileManager()

No description

protected updateJobs()

No description

protected setupSinglePages()

No description

protected installLocales()

No description

protected fixStacks()

No description

protected fixMultilingualPageRelations()

No description

private int[] getCollectionIdTrail(int $cID)

No description

Parameters

int $cID

Return Value

int[]

private executeDelayedQueries()

No description

private fixMissingCategoryNames()

No description