mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
Fixed conflicts & merge branch 'MDL-17201_index' of git://github.com/andyjdavis/moodle
This commit is contained in:
commit
e89a57dc10
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<XMLDB PATH="lib/db" VERSION="20110114" COMMENT="XMLDB file for core Moodle tables"
|
||||
<XMLDB PATH="lib/db" VERSION="20110125" COMMENT="XMLDB file for core Moodle tables"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="../../lib/xmldb/xmldb.xsd"
|
||||
>
|
||||
@ -1246,6 +1246,9 @@
|
||||
<KEYS>
|
||||
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
|
||||
</KEYS>
|
||||
<INDEXES>
|
||||
<INDEX NAME="userfieldidx" UNIQUE="false" FIELDS="userid, fieldid"/>
|
||||
</INDEXES>
|
||||
</TABLE>
|
||||
<TABLE NAME="question_categories" COMMENT="Categories are for grouping questions" PREVIOUS="user_info_data" NEXT="question">
|
||||
<FIELDS>
|
||||
|
@ -5993,6 +5993,18 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
||||
upgrade_main_savepoint(true, 2011012500);
|
||||
}
|
||||
|
||||
if ($oldversion < 2011012501) {
|
||||
//add the index userfieldidx (not unique) to user_info_data
|
||||
$table = new xmldb_table('user_info_data');
|
||||
$index = new xmldb_index('userfieldidx', XMLDB_INDEX_NOTUNIQUE, array('userid', 'fieldid'));
|
||||
|
||||
if (!$dbman->index_exists($table, $index)) {
|
||||
$dbman->add_index($table, $index);
|
||||
}
|
||||
|
||||
upgrade_main_savepoint(true, 2011012501);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2011012500; // YYYYMMDD = date of the last version bump
|
||||
$version = 2011012501; // YYYYMMDD = date of the last version bump
|
||||
// XX = daily increments
|
||||
|
||||
$release = '2.0.1+ (Build: 20110125)'; // Human-friendly version name
|
||||
|
Loading…
x
Reference in New Issue
Block a user