From a66c4bbbd39f9fce14df6ad63805f30fae95b518 Mon Sep 17 00:00:00 2001 From: webchick Date: Mon, 30 Jan 2012 23:04:21 -0800 Subject: Issue #1280792 by julien, xjm, pingers, Niklas Fiekas: Fixed {trigger_assignments()}.hook has only 32 characters, is too short. --- modules/trigger/trigger.install | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules/trigger/trigger.install') diff --git a/modules/trigger/trigger.install b/modules/trigger/trigger.install index 9a172a2a0..ac3ef3c47 100644 --- a/modules/trigger/trigger.install +++ b/modules/trigger/trigger.install @@ -14,7 +14,7 @@ function trigger_schema() { 'fields' => array( 'hook' => array( 'type' => 'varchar', - 'length' => 32, + 'length' => 128, 'not null' => TRUE, 'default' => '', 'description' => 'Primary Key: The name of the internal Drupal hook; for example, node_insert.', @@ -68,3 +68,11 @@ function trigger_update_7000() { } db_drop_field('trigger_assignments', 'op'); } + +/** + * Implements hook_update_N(). + */ +function trigger_update_7001() { + db_drop_primary_key('trigger_assignments'); + db_change_field('trigger_assignments', 'hook', 'hook', array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => '', 'description' => 'Primary Key: The name of the internal Drupal hook; for example, node_insert.', ), array('primary key' => array('hook', 'aid'))); +} -- cgit v1.2.3