You are here

function system_update_6010 in Drupal 6

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.

Related topics

File

modules/system/system.install, line 1405

Code

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