function uuid_update_6002 in Universally Unique IDentifier 6
Same name and namespace in other branches
- 7 uuid.install \uuid_update_6002()
For each of out tables, drop the indexe on the UUID column and add a unique key on that column.
File
- ./
uuid.install, line 114 - Install, update and uninstall functions for the uuid module.
Code
function uuid_update_6002() {
$ret = array();
foreach (uuid_schema() as $table => $schema) {
db_drop_index($ret, $table, $table . '_uuid_idx');
db_add_unique_key($ret, $table, $table . '_uuid_key', array(
'uuid',
));
}
return $ret;
}