summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-04-16 08:47:22 (GMT)
committerAlex Pott2015-04-16 08:47:52 (GMT)
commitf364fc764165d59a6c4a2bd4136df55732ba6fbe (patch)
treee1484dac044c2853042c4be171ea571fed44eb7a
parent3d93230a658630f4506497e17f91fe31a62eade3 (diff)
Issue #2447555 by Cinnead: Unnecessary index on langcode and deleted column in dedicated field tables
-rw-r--r--core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php4
2 files changed, 0 insertions, 6 deletions
diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
index e7109e1..6fb4ddf 100644
--- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
+++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
@@ -1633,9 +1633,7 @@ class SqlContentEntityStorageSchema implements DynamicallyFieldableEntityStorage
'primary key' => array('entity_id', 'deleted', 'delta', 'langcode'),
'indexes' => array(
'bundle' => array('bundle'),
- 'deleted' => array('deleted'),
'revision_id' => array('revision_id'),
- 'langcode' => array('langcode'),
),
);
diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
index 0e97d46..08f73cb 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageSchemaTest.php
@@ -854,9 +854,7 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase {
'primary key' => array('entity_id', 'deleted', 'delta', 'langcode'),
'indexes' => array(
'bundle' => array('bundle'),
- 'deleted' => array('deleted'),
'revision_id' => array('revision_id'),
- 'langcode' => array('langcode'),
),
'foreign keys' => array(
$field_name . '_color' => array(
@@ -1001,9 +999,7 @@ class SqlContentEntityStorageSchemaTest extends UnitTestCase {
'primary key' => array('entity_id', 'deleted', 'delta', 'langcode'),
'indexes' => array(
'bundle' => array('bundle'),
- 'deleted' => array('deleted'),
'revision_id' => array('revision_id'),
- 'langcode' => array('langcode'),
),
'foreign keys' => array(
$field_name . '_color' => array(