diff --git a/modules/file/file.install b/modules/file/file.install index f313249e2cd7b6fb68c91bf480a0acf6a14031e7..c697f87af70421925667a2d47d67bc1adc8a7abf 100644 --- a/modules/file/file.install +++ b/modules/file/file.install @@ -13,7 +13,7 @@ function file_field_schema($field) { return array( 'columns' => array( 'fid' => array( - 'description' => 'The {files}.fid being referenced in this field.', + 'description' => 'The {file_managed}.fid being referenced in this field.', 'type' => 'int', 'not null' => FALSE, 'unsigned' => TRUE, @@ -37,7 +37,7 @@ function file_field_schema($field) { ), 'foreign keys' => array( 'fid' => array( - 'table' => 'file', + 'table' => 'file_managed', 'columns' => array('fid' => 'fid'), ), ), diff --git a/modules/image/image.install b/modules/image/image.install index 3ebf6eef58380d59270ed983f558234f3434c5ba..ea3eee5ac64d2b4d2fee4a9dafb1eb4a24738936 100644 --- a/modules/image/image.install +++ b/modules/image/image.install @@ -114,7 +114,7 @@ function image_field_schema($field) { return array( 'columns' => array( 'fid' => array( - 'description' => 'The {files}.fid being referenced in this field.', + 'description' => 'The {file_managed}.fid being referenced in this field.', 'type' => 'int', 'not null' => FALSE, 'unsigned' => TRUE, @@ -135,6 +135,12 @@ function image_field_schema($field) { 'indexes' => array( 'fid' => array('fid'), ), + 'foreign keys' => array( + 'fid' => array( + 'table' => 'file_managed', + 'columns' => array('fid' => 'fid'), + ), + ), ); }