system_update_6010

Definition

system_update_6010()
modules/system/system.install, line 1320

Description

Add variable replacement for watchdog messages.

The variables field is NOT NULL and does not have a default value. Existing log messages should not be translated in the new system, so we insert 'N;' (serialize(NULL)) as the temporary default but then remove the default value to match the schema.

Code

<?php
function system_update_6010() {
  $ret = array();
  db_add_field($ret, 'watchdog', 'variables', array('type' => 'text', 'size' => 'big', 'not null' => TRUE, 'initial' => 'N;'));
  return $ret;
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.