function spaces_update_6001 in Spaces 6.3
Same name and namespace in other branches
- 6 spaces.install \spaces_update_6001()
- 6.2 spaces.install \spaces_update_6001()
Update script 6001.
File
- ./
spaces.install, line 122
Code
function spaces_update_6001() {
$ret = array();
// Lose some weight, spaces!
db_query("UPDATE {system} SET weight = -1 WHERE name = 'spaces' AND type ='module'");
// Schema -- add weight column to features table
$schema = spaces_schema();
db_add_field($ret, 'spaces_features', 'weight', $schema['spaces_features']['fields']['weight']);
return $ret;
}