Commit 44373cf0 authored by Dries's avatar Dries

- Patch #191282 by quicksketch: inconsistent database region for disabled blocks.

parent e05c6195
......@@ -52,7 +52,7 @@ function block_schema() {
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => 'left',
'default' => '',
'description' => t('Theme region within which the block is set.'),
),
'custom' => array(
......
......@@ -4524,6 +4524,15 @@ function system_update_6036() {
return $ret;
}
/**
* Create consistent empty region for disabled blocks.
*/
function system_update_6037() {
$ret = array();
$ret[] = update_sql("UPDATE {blocks} SET region = '' WHERE status = 0");
return $ret;
}
/**
* @} End of "defgroup updates-5.x-to-6.x"
* The next series of updates should start at 7000.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment