mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
And index fields are lowercased too. Part of MDL-10413
Merged from MOODLE_18_STABLE
This commit is contained in:
parent
40f5b3011a
commit
470617ba0a
@ -210,8 +210,9 @@ class XMLDBIndex extends XMLDBObject {
|
||||
|
||||
/// Set the unique field
|
||||
$this->unique = false;
|
||||
/// Set the fields
|
||||
$this->fields = $adoindex['columns'];
|
||||
/// Set the fields, converting all them to lowercase
|
||||
$fields = array_flip(array_change_key_case(array_flip($adoindex['columns'])));
|
||||
$this->fields = $fields;
|
||||
/// Some more fields
|
||||
$this->loaded = true;
|
||||
$this->changed = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user