function invite_update_1 in Invite 5
Same name and namespace in other branches
- 5.2 invite.install \invite_update_1()
File
- ./
invite.install, line 102
Code
function invite_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {invite} CHANGE reg_code reg_code VARCHAR(64) UNIQUE NOT NULL");
$ret[] = update_sql("ALTER TABLE {invite} ADD INDEX reg_code_idx (reg_code)");
break;
}
return $ret;
}