function panels_update_6311 in Panels 6.3
Change panels_display.layout to match the size of panels_layout.name.
File
- ./
panels.install, line 1522
Code
function panels_update_6311() {
$ret = array();
// Clear the schema cache so the change is picked up.
cache_clear_all('schema', 'cache');
// Load the schema.
$schema = panels_schema();
$table = 'panels_display';
$field = 'layout';
$spec = $schema[$table]['fields'][$field];
// Re-define the column.
db_change_field($ret, $table, $field, $field, $spec);
$ret[] = array(
'success' => TRUE,
'query' => t('Changed the panels_display.layout field to the correct size.'),
);
return $ret;
}