function avatar_selection_update_1 in Avatar Selection 6
Same name and namespace in other branches
- 5.2 avatar_selection.install \avatar_selection_update_1()
- 5 avatar_selection.install \avatar_selection_update_1()
- 7 avatar_selection.install \avatar_selection_update_1()
Adds to the current table structure another two columns, 'weight' and 'name'.
Should have been created with avatar_selection_update_600x() naming convention, but too late now.
Return value
Array to which query results will be added.
File
- ./
avatar_selection.install, line 102 - The Avatar Selection module install file.
Code
function avatar_selection_update_1() {
$ret = array();
db_add_field($ret, 'avatar_selection', 'weight', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
db_add_field($ret, 'avatar_selection', 'name', array(
'type' => 'varchar',
'length' => 255,
));
return $ret;
}