class Version20180119000000 extends AbstractMigration implements DirectSchemaUpgraderInterface (View source)

Properties

protected $app from  AbstractMigration

Methods

__construct(Version $version)

No description

up(Schema $schema)

{@inheritdoc}

postUp(Schema $schema)

{@inheritdoc}

down(Schema $schema)

{@inheritdoc}

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.

upgradeDatabase()

Upgrade the database structure with direct database access.

Details

__construct(Version $version)

No description

Parameters

Version $version

final up(Schema $schema)

{@inheritdoc}

Parameters

Schema $schema

See also

\Doctrine\DBAL\Migrations\AbstractMigration::up()

final postUp(Schema $schema)

{@inheritdoc}

Parameters

Schema $schema

See also

\Doctrine\DBAL\Migrations\AbstractMigration::postUp()

final down(Schema $schema)

{@inheritdoc}

Parameters

Schema $schema

See also

\Doctrine\DBAL\Migrations\AbstractMigration::down()

final postDown(Schema $schema)

{@inheritdoc}

Parameters

Schema $schema

See also

\Doctrine\DBAL\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

upgradeDatabase()

Upgrade the database structure with direct database access.