function restful_test_install in RESTful 7.2
Implements hook_install().
File
- tests/
modules/ restful_test/ restful_test.install, line 11 - Install, update and uninstall functions for the entity_test module.
Code
function restful_test_install() {
if (!db_field_exists('entity_test', 'uuid')) {
db_add_field('entity_test', 'uuid', array(
'type' => 'char',
'length' => 36,
'not null' => TRUE,
'default' => '',
'description' => 'The Universally Unique Identifier.',
));
db_add_index('entity_test', 'uuid', array(
'uuid',
));
}
}