You are here

function invite_update_5 in Invite 5

Same name and namespace in other branches
  1. 5.2 invite.install \invite_update_5()

Save invite message text.

File

./invite.install, line 176

Code

function invite_update_5() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {invite} ADD COLUMN message TEXT NOT NULL default ''");
      break;
    case 'pgsql':
      db_add_column($ret, 'invite', 'message', 'TEXT', array(
        'not null' => TRUE,
        'default' => "''",
      ));
      break;
  }
  return $ret;
}