function trigger_update_7001 in Drupal 7
Increase the length of the "hook" field to 78 characters.
This is a separate function for those who ran an older version of trigger_update_7000() that did not do this.
Related topics
File
- modules/
trigger/ trigger.install, line 93 - Install, update and uninstall functions for the trigger module.
Code
function trigger_update_7001() {
db_drop_primary_key('trigger_assignments');
db_change_field('trigger_assignments', 'hook', 'hook', array(
'type' => 'varchar',
'length' => 78,
'not null' => TRUE,
'default' => '',
'description' => 'Primary Key: The name of the internal Drupal hook; for example, node_insert.',
), array(
'primary key' => array(
'hook',
'aid',
),
));
}