function override_css_update_7100 in Override css 7
Move css properties to a new table.
File
- ./
override_css.install, line 113
Code
function override_css_update_7100() {
// Create new table
$schema = override_css_schema();
db_create_table('override_css_properties', $schema['override_css_properties']);
// Move fields to new table
$query = db_select('override_css', 'o')
->fields('o', array(
'name',
'properties_values',
));
db_insert('override_css_properties')
->fields(array(
'name',
'properties_values',
))
->from($query)
->execute();
// Remove properties values table
db_drop_field('override_css', 'properties_values');
}