function tripal_bulk_loader_update_7200
2.x tripal_bulk_loader.install | tripal_bulk_loader_update_7200() |
3.x tripal_bulk_loader.install | tripal_bulk_loader_update_7200() |
Implements hook_update_N().
Update to 7.x-2.0 -Cast tripal_bulk_loader.template_id to int field
File
- tripal_bulk_loader/
tripal_bulk_loader.install, line 251 - Install/Uninstalls, Enables/Disables this module.
Code
function tripal_bulk_loader_update_7200() {
// Make sure we have the full API loaded this will help during a
// site upgrade when the tripal_core module is disabled.
module_load_include('module', 'tripal_core', 'tripal_core');
tripal_core_import_api();
db_change_field(
'tripal_bulk_loader',
'template_id',
'template_id',
array('type' => 'int')
);
db_add_field(
'tripal_bulk_loader_template',
'created',
array(
'description' => 'The Unix timestamp when the template was created.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
)
);
db_add_field(
'tripal_bulk_loader_template',
'changed',
array(
'description' => 'The Unix timestamp when the template was most recently saved.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
)
);
return 'Updated tripal_bulk_loader.template_id from character to integer '
. 'and added time created/updated track to templates.';
}