function hosting_package_update_7 in Hostmaster (Aegir) 6
Turn the iid column of hosting_package_instance into a serial field
Required by Drupal 6 update.
File
- modules/
hosting/ package/ hosting_package.install, line 249 - Install, update and uninstall for the package management module.
Code
function hosting_package_update_7() {
$ret = array();
db_drop_primary_key($ret, 'hosting_package_instance');
db_field_set_no_default($ret, 'hosting_package_instance', 'iid');
db_change_field($ret, 'hosting_package_instance', 'iid', 'iid', array(
'type' => 'serial',
'not null' => TRUE,
), array(
'primary key' => array(
'iid',
),
));
return $ret;
}