#970002 by EclipseGc: Fixed file field foreign key table is incorrect

merge-requests/26/head
Angie Byron 2010-11-21 09:24:41 +00:00
parent 17c6a9122b
commit 0222fa7003
2 changed files with 9 additions and 3 deletions

View File

@ -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'),
),
),

View File

@ -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'),
),
),
);
}