You are here

function system_update_6047 in Drupal 6

Fix cache mode for blocks inserted in system_install() in fresh installs of previous RC.

Related topics

File

modules/system/system.install, line 2595

Code

function system_update_6047() {
  $ret = array();
  $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'user' AND delta IN ('0', '1')");
  $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'system' AND delta = '0'");
  return $ret;
}