Not sure whether or not this is done on purpose, but in rules.install there are schema definitions which define foreign keys in a way that differs from the way Schema API documentation proposes:

'foreign keys': An associative array of relations ('my_relation' => specification). Each specification is an array containing the name of the referenced table ('table'), and an array of column mappings ('columns'). Column mappings are defined by key pairs ('source_column' => 'referenced_column').

rules-incorrect_foreign_key_definition_in_schema.patch2.02 KBxatoo
PASSED: [[SimpleTest]]: [MySQL] 328 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


fago’s picture

Status: Needs review » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.