diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-30 23:04:21 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-30 23:04:21 -0800 |
commit | a66c4bbbd39f9fce14df6ad63805f30fae95b518 (patch) | |
tree | 6fdea5e664a2bd7eb3f8d186a190f09b1b137089 /modules/trigger/trigger.install | |
parent | 060b016ae05687454f19b3c92ff02675881bca01 (diff) | |
download | brdo-a66c4bbbd39f9fce14df6ad63805f30fae95b518.tar.gz brdo-a66c4bbbd39f9fce14df6ad63805f30fae95b518.tar.bz2 |
Issue #1280792 by julien, xjm, pingers, Niklas Fiekas: Fixed {trigger_assignments()}.hook has only 32 characters, is too short.
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'))); +} |