Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/content_moderation/src/ContentModerationStateStorageSchema.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
23 'content_entity_id', | 23 'content_entity_id', |
24 'content_entity_revision_id', | 24 'content_entity_revision_id', |
25 'workflow', | 25 'workflow', |
26 'langcode', | 26 'langcode', |
27 ]; | 27 ]; |
28 $schema['content_moderation_state_field_data']['unique keys'] += [ | 28 if ($data_table = $this->storage->getDataTable()) { |
29 'content_moderation_state__lookup' => $unique_keys, | 29 $schema[$data_table]['unique keys'] += [ |
30 ]; | 30 'content_moderation_state__lookup' => $unique_keys, |
31 $schema['content_moderation_state_field_revision']['unique keys'] += [ | 31 ]; |
32 'content_moderation_state__lookup' => $unique_keys, | 32 } |
33 ]; | 33 if ($revision_data_table = $this->storage->getRevisionDataTable()) { |
34 $schema[$revision_data_table]['unique keys'] += [ | |
35 'content_moderation_state__lookup' => $unique_keys, | |
36 ]; | |
37 } | |
34 | 38 |
35 return $schema; | 39 return $schema; |
36 } | 40 } |
37 | 41 |
38 } | 42 } |