And index fields are lowercased too. Part of MDL-10413

This commit is contained in:
stronk7
2007-07-17 18:53:19 +00:00
parent 392e59c88e
commit 6794ccb2b3
+3 -2
View File
@@ -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;