You are here

function uuid_update_2 in Universally Unique IDentifier 5

File

./uuid.install, line 41

Code

function uuid_update_2() {

  // Create uuid_node_revisions table.
  db_query(uuid_table_schema('node_revisions', 'vid'));

  // Populate uuid_node_revisions table.
  db_query('INSERT INTO {uuid_node_revisions} SELECT vid, UUID() FROM {node_revisions}');
  return array();
}