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