function slick_update_7301 in Slick Carousel 7.3
Add db field `collection` and `optimized` to the slick_optionset table.
File
- ./
slick.install, line 187 - Installation actions for Slick.
Code
function slick_update_7301() {
$collection_field = [
'type' => 'varchar',
'description' => 'The optionset collection.',
'length' => 64,
'not null' => FALSE,
];
// Check that the field hasn't been updated in an aborted run of this update.
if (!db_field_exists(Slick::TABLE, 'collection')) {
db_add_field(Slick::TABLE, 'collection', $collection_field);
}
$optimized_field = [
'type' => 'int',
'description' => 'If optimized',
'not null' => TRUE,
'default' => 0,
];
if (!db_field_exists(Slick::TABLE, 'optimized')) {
db_add_field(Slick::TABLE, 'optimized', $optimized_field);
}
}