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