Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / menu_link_content / src / MenuLinkContentStorageSchema.php
index e5c7ab5060eada3d77e8fe206d10ba2805bdbd45..1a366395841a4a5cc9ba112c7a391eff87015342 100644 (file)
@@ -17,7 +17,7 @@ class MenuLinkContentStorageSchema extends SqlContentEntityStorageSchema {
     $schema = parent::getSharedTableFieldSchema($storage_definition, $table_name, $column_mapping);
     $field_name = $storage_definition->getName();
 
-    if ($table_name == 'menu_link_content') {
+    if ($table_name == $this->storage->getBaseTable()) {
       switch ($field_name) {
         case 'rediscover':
           $this->addSharedTableFieldIndex($storage_definition, $schema, TRUE);