You are here

function user_relationships_update_1 in User Relationships 5

Same name and namespace in other branches
  1. 5.2 user_relationships.install \user_relationships_update_1()

Update 1: Add timestamp to allow expiring unanswered requests

File

./user_relationships.install, line 94

Code

function user_relationships_update_1() {
  $queries = array(
    "ALTER TABLE {user_relationships} ADD created_at  DATETIME  NOT NULL;",
    "ALTER TABLE {user_relationships} ADD updated_at  TIMESTAMP  NOT NULL;",
    "UPDATE {user_relationships} SET created_at = NOW();",
  );
  _user_relationships_installation_query($queries);
}