-
Bug
-
Resolution: Fixed
-
Critical
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-74138-master -
-
1
-
QA time
Reported here: https://moodle.org/mod/forum/discuss.php?d=432562
Line 55:
$table->add_key('unique_key', XMLDB_KEY_UNIQUE, ['userid, issuer256, sub256']); |
Shouldn't quote all fields in one string, but rather should quote the individual fields. This presents as an upgrade error on sqlsrv (and perhaps other dbs).
I.e. should be doing this:
$table->add_key('unique_key', XMLDB_KEY_UNIQUE, ['userid', 'issuer256', 'sub256']); |
Postgres seems to work somehow - as if that code path corrects the index or something.
Mariadb - works and index created ok - same as pgsql.
Mysql - works and index created ok - same as pgsql.
Oracle - fails upgrade like mssql does.