function deploy_update_7001 in Deploy - Content Staging 7.2
Same name and namespace in other branches
- 7.3 deploy.install \deploy_update_7001()
Convert timestamp for deploy_manager_entities to float for more precision.
File
- ./
deploy.install, line 333 - Deploy module installation functions.
Code
function deploy_update_7001(&$sandbox) {
$spec = array(
'description' => 'The unix timestamp indicating when this item was added to the deployment plan.',
'type' => 'numeric',
'precision' => 16,
'scale' => 4,
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
);
db_change_field('deploy_manager_entities', 'timestamp', 'timestamp', $spec);
// Now we add the new index so MySQL doesn't whinge.
db_add_index('deploy_manager_entities', 'timstamp', array(
'timestamp',
));
}