diff options
author | David Rothstein <drothstein@gmail.com> | 2013-08-04 23:13:28 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-08-04 23:13:28 -0400 |
commit | 9988e47d6d4f0c0f858af424d23bc6825c550b19 (patch) | |
tree | 34d8354807efd58680d3aaef29e189e70e6b58b5 /modules/field/field.crud.inc | |
parent | 2865cfc6cd6af3e1e1262ae69d912b00dd2b6f3b (diff) | |
download | brdo-9988e47d6d4f0c0f858af424d23bc6825c550b19.tar.gz brdo-9988e47d6d4f0c0f858af424d23bc6825c550b19.tar.bz2 |
Issue #1416506 by yched, Damien Tournoud, swentel: Fixed Field schema foreign keys support is broken.
Diffstat (limited to 'modules/field/field.crud.inc')
-rw-r--r-- | modules/field/field.crud.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/field/field.crud.inc b/modules/field/field.crud.inc index c4c79d79f..83863d6eb 100644 --- a/modules/field/field.crud.inc +++ b/modules/field/field.crud.inc @@ -244,9 +244,11 @@ function field_update_field($field) { // $prior_field may no longer be right. module_load_install($field['module']); $schema = (array) module_invoke($field['module'], 'field_schema', $field); - $schema += array('columns' => array(), 'indexes' => array()); + $schema += array('columns' => array(), 'indexes' => array(), 'foreign keys' => array()); // 'columns' are hardcoded in the field type. $field['columns'] = $schema['columns']; + // 'foreign keys' are hardcoded in the field type. + $field['foreign keys'] = $schema['foreign keys']; // 'indexes' can be both hardcoded in the field type, and specified in the // incoming $field definition. $field += array( |