Commit 1772c721 authored by Nigel McNie's avatar Nigel McNie

A couple of MySQL installation issue fixes:

 * Make sure that the root user has their authinstance ID set correctly.
 * Make sure that the root user is forced to have ID 0
parent 6af942af
......@@ -477,7 +477,8 @@ function core_install_defaults() {
$user->lastname = 'User';
$user->email = 'root@example.org';
$user->quota = get_config_plugin('artefact', 'file', 'defaultquota');
$newid = insert_record('usr', $user);
$user->authinstance = $auth_instance->id;
$newid = insert_record('usr', $user, 'id', true);
if ($newid > 0 && get_config('dbtype') == 'mysql') { // gratuitous mysql workaround
set_field('usr', 'id', 0, 'id', $newid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment