#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(
|
return array(
|
||||||
'columns' => array(
|
'columns' => array(
|
||||||
'fid' => array(
|
'fid' => array(
|
||||||
'description' => 'The {files}.fid being referenced in this field.',
|
'description' => 'The {file_managed}.fid being referenced in this field.',
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'not null' => FALSE,
|
'not null' => FALSE,
|
||||||
'unsigned' => TRUE,
|
'unsigned' => TRUE,
|
||||||
|
@ -37,7 +37,7 @@ function file_field_schema($field) {
|
||||||
),
|
),
|
||||||
'foreign keys' => array(
|
'foreign keys' => array(
|
||||||
'fid' => array(
|
'fid' => array(
|
||||||
'table' => 'file',
|
'table' => 'file_managed',
|
||||||
'columns' => array('fid' => 'fid'),
|
'columns' => array('fid' => 'fid'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -114,7 +114,7 @@ function image_field_schema($field) {
|
||||||
return array(
|
return array(
|
||||||
'columns' => array(
|
'columns' => array(
|
||||||
'fid' => array(
|
'fid' => array(
|
||||||
'description' => 'The {files}.fid being referenced in this field.',
|
'description' => 'The {file_managed}.fid being referenced in this field.',
|
||||||
'type' => 'int',
|
'type' => 'int',
|
||||||
'not null' => FALSE,
|
'not null' => FALSE,
|
||||||
'unsigned' => TRUE,
|
'unsigned' => TRUE,
|
||||||
|
@ -135,6 +135,12 @@ function image_field_schema($field) {
|
||||||
'indexes' => array(
|
'indexes' => array(
|
||||||
'fid' => array('fid'),
|
'fid' => array('fid'),
|
||||||
),
|
),
|
||||||
|
'foreign keys' => array(
|
||||||
|
'fid' => array(
|
||||||
|
'table' => 'file_managed',
|
||||||
|
'columns' => array('fid' => 'fid'),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue