--- ./trigger.install 2009-08-18 12:30:40.000000000 +0200 +++ ./trigger_new.install 2009-09-17 10:26:54.977079014 +0200 @@ -36,7 +36,7 @@ function trigger_schema() { ), 'op' => array( 'type' => 'varchar', - 'length' => 32, + 'length' => 46, '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,11 @@ function trigger_schema() { return $schema; } - +/** + * Extend the {trigger_assignments}.op field to 46 characters. + */ +function trigger_update_7000() { + $ret = array(); + db_change_field($ret, 'trigger_assignments', 'op', 'op', array('type' => 'varchar', 'length' => 46, 'not null' => TRUE, 'default' => '')); + return $ret; +}