You are here

protected function SqlContentEntityStorageSchema::getColumnSchemaRelevantKeys in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::getColumnSchemaRelevantKeys()

Returns a list of column schema keys affecting data storage.

When comparing schema definitions, only changes in certain properties actually affect how data is stored and thus, if applied, may imply data manipulation.

Return value

string[] An array of key names.

1 call to SqlContentEntityStorageSchema::getColumnSchemaRelevantKeys()
SqlContentEntityStorageSchema::hasColumnChanges in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Compares schemas to check for changes in the column definitions.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1967
Contains \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema.

Class

SqlContentEntityStorageSchema
Defines a schema handler that supports revisionable, translatable entities.

Namespace

Drupal\Core\Entity\Sql

Code

protected function getColumnSchemaRelevantKeys() {
  return [
    'type',
    'size',
    'length',
    'unsigned',
  ];
}