diff options
Diffstat (limited to 'modules/image/image.install')
-rw-r--r-- | modules/image/image.install | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/image/image.install b/modules/image/image.install index 3ebf6eef5..ea3eee5ac 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'), + ), + ), ); } |