#970002 by EclipseGc: Fixed file field foreign key table is incorrect
parent
17c6a9122b
commit
0222fa7003
|
@ -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'),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue