diff --git modules/trigger/trigger.install modules/trigger/trigger.install index a9a22bd..071d9b3 100644 --- modules/trigger/trigger.install +++ modules/trigger/trigger.install @@ -36,7 +36,7 @@ function trigger_schema() { ), 'op' => array( 'type' => 'varchar', - 'length' => 32, + 'length' => 64, 'not null' => TRUE, 'default' => '', 'description' => 'Primary Key: The specific operation of the hook upon which an action is firing: for example, presave.', @@ -60,4 +60,12 @@ function trigger_schema() { return $schema; } +/** + * Extend the {trigger_assignments}.op field to 64 characters. + */ +function trigger_update_7000() { + $ret = array(); + db_change_field($ret, 'trigger_assignments', 'op', 'op', array('type' => 'varchar', 'length' => 64, 'not null' => TRUE, 'default' => '')); + return $ret; +}