Skip to content

Commit

Permalink
Merge branch 'MDL-36941_master-fix' of git://github.com/markn86/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 28, 2018
2 parents 78c0339 + 7489e4d commit 83c64f7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion iplookup/tests/geoip_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function test_ip($ip) {
public function ip_provider() {
return [
'IPv4: Sample suggested by maxmind themselves' => ['24.24.24.24'],
'IPv4: github.com' => ['192.30.255.112'],
'IPv4: github.com' => ['192.30.255.112'],
'IPv6: UCLA' => ['2607:f010:3fe:fff1::ff:fe00:25'],
];
}
Expand Down
3 changes: 2 additions & 1 deletion lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2191,11 +2191,12 @@ function xmldb_main_upgrade($oldversion) {
}

if ($oldversion < 2018032700.00) {

// Update default search engine to search_simpledb if global search is disabled and there is no solr index defined.
if (empty($CFG->enableglobalsearch) && empty(get_config('search_solr', 'indexname'))) {
set_config('searchengine', 'simpledb');
}

// Main savepoint reached.
upgrade_main_savepoint(true, 2018032700.00);
}

Expand Down
22 changes: 22 additions & 0 deletions message/output/popup/db/install.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="message/output/popup/db" VERSION="20161221" COMMENT="XMLDB file for Moodle message/output/popup"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../lib/xmldb/xmldb.xsd"
>
<TABLES>
<TABLE NAME="message_popup" COMMENT="Keep state of notifications for the popup message processor">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
<FIELD NAME="messageid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"/>
<FIELD NAME="isread" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
</KEYS>
<INDEXES>
<INDEX NAME="messageid-isread" UNIQUE="true" FIELDS="messageid, isread"/>
<INDEX NAME="isread" UNIQUE="false" FIELDS="isread"/>
</INDEXES>
</TABLE>
</TABLES>
</XMLDB>
11 changes: 0 additions & 11 deletions message/output/popup/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,5 @@ function xmldb_message_popup_upgrade($oldversion) {
// Automatically generated Moodle v3.4.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2018022000) {
// Drop table that is no longer needed.
$table = new xmldb_table('message_popup');
if ($dbman->table_exists($table)) {
$dbman->drop_table($table);
}

// Popup savepoint reached.
upgrade_plugin_savepoint(true, 2018022000, 'message', 'popup');
}

return true;
}

0 comments on commit 83c64f7

Please sign in to comment.