New field "guid" added to table user.
This can be userd to store "global unique identifier" from external databases like Windows SID or eDirectorys guid . This will keep upcoming user syncronization feature reliable in case of renamed users. Mysql files are untested. php -l mysql.php does not show any syntax errors, so files should work.
This commit is contained in:
@@ -584,6 +584,11 @@ function main_upgrade($oldversion=0) {
|
||||
set_field('user', 'auth', 'manual', 'username', 'guest');
|
||||
}
|
||||
|
||||
if ($oldversion < 2004090300) { // Add guid-field used in user syncronization
|
||||
table_column('user', '', 'guid', 'varchar', '128', '', '', '', 'auth');
|
||||
execute_sql("CREATE INDEX {$CFG->prefix}user_auth_guid_idx ON {$CFG->prefix}user (auth, guid)");
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user