diff options
Diffstat (limited to 'modules/trigger/trigger.install')
-rw-r--r-- | modules/trigger/trigger.install | 10 |
1 files changed, 9 insertions, 1 deletions
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'))); +} |