Mercurial > hg > isophonics-drupal-site
comparison core/modules/node/src/NodeStorageSchema.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
15 * {@inheritdoc} | 15 * {@inheritdoc} |
16 */ | 16 */ |
17 protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) { | 17 protected function getEntitySchema(ContentEntityTypeInterface $entity_type, $reset = FALSE) { |
18 $schema = parent::getEntitySchema($entity_type, $reset); | 18 $schema = parent::getEntitySchema($entity_type, $reset); |
19 | 19 |
20 $schema['node_field_data']['indexes'] += [ | 20 if ($data_table = $this->storage->getDataTable()) { |
21 'node__frontpage' => ['promote', 'status', 'sticky', 'created'], | 21 $schema[$data_table]['indexes'] += [ |
22 'node__title_type' => ['title', ['type', 4]], | 22 'node__frontpage' => ['promote', 'status', 'sticky', 'created'], |
23 ]; | 23 'node__title_type' => ['title', ['type', 4]], |
24 ]; | |
25 } | |
24 | 26 |
25 return $schema; | 27 return $schema; |
26 } | 28 } |
27 | 29 |
28 /** | 30 /** |