function panels_update_7305 in Panels 7.3
Add the "storage_type" and "storage_id" columns to "panels_display".
1 call to panels_update_7305()
- panels_update_7302 in ./
panels.install - Adding universally unique identifiers to panels.
File
- ./
panels.install, line 603
Code
function panels_update_7305() {
$schema = panels_schema_8();
$new_fields = array(
'panels_display' => array(
'storage_type',
'storage_id',
),
);
foreach ($new_fields as $table => $fields) {
foreach ($fields as $field_name) {
// Due to a previous failure, the column may already exist:
if (!db_field_exists($table, $field_name)) {
db_add_field($table, $field_name, $schema[$table]['fields'][$field_name]);
}
}
}
}