function dblog_update_7001
Update the {watchdog} table.
Related topics
File
-
modules/
dblog/ dblog.install, line 110
Code
function dblog_update_7001() {
// Allow NULL values for links.
db_change_field('watchdog', 'link', 'link', array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => '',
'description' => 'Link to view the result of the event.',
));
// Add an index on uid.
db_add_index('watchdog', 'uid', array(
'uid',
));
// Allow longer type values.
db_change_field('watchdog', 'type', 'type', array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
'description' => 'Type of log message, for example "user" or "page not found."',
));
// Convert the variables field (that stores serialized variables) from text to blob.
db_change_field('watchdog', 'variables', 'variables', array(
'type' => 'blob',
'not null' => TRUE,
'size' => 'big',
'description' => 'Serialized array of variables that match the message string and that is passed into the t() function.',
));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.