Skip to content

Commit

Permalink
Merge branch 'MDL-63276' of https://github.com/stronk7/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jan 7, 2019
2 parents 11825f1 + a12207b commit 792267c
Show file tree
Hide file tree
Showing 109 changed files with 198 additions and 1,170 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ language: php
php:
# We only run the highest and lowest supported versions to reduce the load on travis-ci.org.
- 7.2
- 7.0
- 7.1

addons:
postgresql: "9.6"
Expand Down Expand Up @@ -63,7 +63,7 @@ matrix:
# Exclude it on all versions except for 7.2

- env: DB=mysqli TASK=PHPUNIT
php: 7.0
php: 7.1

cache:
directories:
Expand Down
181 changes: 181 additions & 0 deletions admin/environment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2618,4 +2618,185 @@
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
<MOODLE version="3.7" requires="3.2">
<UNICODE level="required">
<FEEDBACK>
<ON_ERROR message="unicoderequired" />
</FEEDBACK>
</UNICODE>
<DATABASE level="required">
<VENDOR name="mariadb" version="5.5.31" />
<VENDOR name="mysql" version="5.6" />
<VENDOR name="postgres" version="9.4" />
<VENDOR name="mssql" version="10.0" />
<VENDOR name="oracle" version="11.2" />
</DATABASE>
<PHP version="7.1.0" level="required">
</PHP>
<PCREUNICODE level="optional">
<FEEDBACK>
<ON_CHECK message="pcreunicodewarning" />
</FEEDBACK>
</PCREUNICODE>
<PHP_EXTENSIONS>
<PHP_EXTENSION name="iconv" level="required">
<FEEDBACK>
<ON_ERROR message="iconvrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="mbstring" level="optional">
<FEEDBACK>
<ON_CHECK message="mbstringrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="curl" level="required">
<FEEDBACK>
<ON_ERROR message="curlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="openssl" level="required">
<FEEDBACK>
<ON_ERROR message="opensslrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="tokenizer" level="optional">
<FEEDBACK>
<ON_CHECK message="tokenizerrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlrpc" level="optional">
<FEEDBACK>
<ON_CHECK message="xmlrpcrecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="soap" level="optional">
<FEEDBACK>
<ON_CHECK message="soaprecommended" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="ctype" level="required">
<FEEDBACK>
<ON_ERROR message="ctyperequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zip" level="required">
<FEEDBACK>
<ON_ERROR message="ziprequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="zlib" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="gd" level="required">
<FEEDBACK>
<ON_ERROR message="gdrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="simplexml" level="required">
<FEEDBACK>
<ON_ERROR message="simplexmlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="spl" level="required">
<FEEDBACK>
<ON_ERROR message="splrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="pcre" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="dom" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xml" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="xmlreader" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="intl" level="required">
<FEEDBACK>
<ON_ERROR message="intlrequired" />
</FEEDBACK>
</PHP_EXTENSION>
<PHP_EXTENSION name="json" level="required">
</PHP_EXTENSION>
<PHP_EXTENSION name="hash" level="required"/>
<PHP_EXTENSION name="fileinfo" level="required"/>
</PHP_EXTENSIONS>
<PHP_SETTINGS>
<PHP_SETTING name="memory_limit" value="96M" level="required">
<FEEDBACK>
<ON_ERROR message="settingmemorylimit" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="file_uploads" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="settingfileuploads" />
</FEEDBACK>
</PHP_SETTING>
<PHP_SETTING name="opcache.enable" value="1" level="optional">
<FEEDBACK>
<ON_CHECK message="opcacherecommended" />
</FEEDBACK>
</PHP_SETTING>
</PHP_SETTINGS>
<CUSTOM_CHECKS>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_storage_engine" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbstorageengine" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="question/engine/upgrade/upgradelib.php" function="quiz_attempts_upgraded" level="required">
<FEEDBACK>
<ON_ERROR message="quizattemptsupgradedmessage" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_slasharguments" level="optional">
<FEEDBACK>
<ON_CHECK message="slashargumentswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_database_tables_row_format" level="optional">
<FEEDBACK>
<ON_CHECK message="unsupporteddbtablerowformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_unoconv_version" level="optional">
<FEEDBACK>
<ON_CHECK message="unoconvwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_libcurl_version" level="optional">
<FEEDBACK>
<ON_CHECK message="libcurlwarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_format" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfileformat" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_file_per_table" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddbfilepertable" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_large_prefix" level="required">
<FEEDBACK>
<ON_ERROR message="unsupporteddblargeprefix" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_is_https" level="optional">
<FEEDBACK>
<ON_CHECK message="ishttpswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_mysql_incomplete_unicode_support" level="optional">
<FEEDBACK>
<ON_CHECK message="incompleteunicodesupport" />
</FEEDBACK>
</CUSTOM_CHECK>
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_sixtyfour_bits" level="optional">
<FEEDBACK>
<ON_CHECK message="sixtyfourbitswarning" />
</FEEDBACK>
</CUSTOM_CHECK>
</CUSTOM_CHECKS>
</MOODLE>
</COMPATIBILITY_MATRIX>
3 changes: 0 additions & 3 deletions admin/tool/customlang/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
function xmldb_tool_customlang_upgrade($oldversion) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
3 changes: 0 additions & 3 deletions admin/tool/log/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
function xmldb_tool_log_upgrade($oldversion) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
3 changes: 0 additions & 3 deletions admin/tool/log/store/database/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
function xmldb_logstore_database_upgrade($oldversion) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
3 changes: 0 additions & 3 deletions admin/tool/log/store/standard/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
function xmldb_logstore_standard_upgrade($oldversion) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
20 changes: 0 additions & 20 deletions admin/tool/monitor/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,6 @@
function xmldb_tool_monitor_upgrade($oldversion) {
global $CFG, $DB;

$dbman = $DB->get_manager();

if ($oldversion < 2016052305) {

// Define field inactivedate to be added to tool_monitor_subscriptions.
$table = new xmldb_table('tool_monitor_subscriptions');
$field = new xmldb_field('inactivedate', XMLDB_TYPE_INTEGER, '10', null, true, null, 0, 'lastnotificationsent');

// Conditionally launch add field inactivedate.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}

// Monitor savepoint reached.
upgrade_plugin_savepoint(true, 2016052305, 'tool', 'monitor');
}

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2017021300) {

// Delete "orphaned" subscriptions.
Expand Down
3 changes: 0 additions & 3 deletions admin/tool/usertours/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
function xmldb_tool_usertours_upgrade($oldversion) {
global $CFG, $DB;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
3 changes: 0 additions & 3 deletions auth/cas/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
function xmldb_auth_cas_upgrade($oldversion) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2017020700) {
// Convert info in config plugins from auth/cas to auth_cas.
upgrade_fix_config_auth_plugin_names('cas');
Expand Down
3 changes: 0 additions & 3 deletions auth/db/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
function xmldb_auth_db_upgrade($oldversion) {
global $CFG, $DB;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2017032800) {
// Convert info in config plugins from auth/db to auth_db
upgrade_fix_config_auth_plugin_names('db');
Expand Down
3 changes: 0 additions & 3 deletions auth/email/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
function xmldb_auth_email_upgrade($oldversion) {
global $CFG, $DB;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2017020700) {
// Convert info in config plugins from auth/email to auth_email.
upgrade_fix_config_auth_plugin_names('email');
Expand Down
3 changes: 0 additions & 3 deletions auth/ldap/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
function xmldb_auth_ldap_upgrade($oldversion) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2017020700) {
// Convert info in config plugins from auth/ldap to auth_ldap.
upgrade_fix_config_auth_plugin_names('ldap');
Expand Down
3 changes: 0 additions & 3 deletions auth/manual/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
function xmldb_auth_manual_upgrade($oldversion) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2017020700) {
// Convert info in config plugins from auth/manual to auth_manual.
upgrade_fix_config_auth_plugin_names('manual');
Expand Down
2 changes: 0 additions & 2 deletions auth/mnet/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
function xmldb_auth_mnet_upgrade($oldversion) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2017020700) {
// Convert info in config plugins from auth/mnet to auth_mnet.
upgrade_fix_config_auth_plugin_names('mnet');
Expand Down
3 changes: 0 additions & 3 deletions auth/none/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
function xmldb_auth_none_upgrade($oldversion) {
global $CFG, $DB;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2017020700) {
// Convert info in config plugins from auth/none to auth_none.
upgrade_fix_config_auth_plugin_names('none');
Expand Down
3 changes: 0 additions & 3 deletions auth/oauth2/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ function xmldb_auth_oauth2_upgrade($oldversion) {

$dbman = $DB->get_manager();

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
3 changes: 0 additions & 3 deletions auth/shibboleth/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
function xmldb_auth_shibboleth_upgrade($oldversion) {
global $CFG, $DB;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

if ($oldversion < 2017020700) {
// Convert info in config plugins from auth/shibboleth to auth_shibboleth.
upgrade_fix_config_auth_plugin_names('shibboleth');
Expand Down
3 changes: 0 additions & 3 deletions blocks/badges/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
function xmldb_block_badges_upgrade($oldversion, $block) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
3 changes: 0 additions & 3 deletions blocks/calendar_month/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
function xmldb_block_calendar_month_upgrade($oldversion, $block) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
3 changes: 0 additions & 3 deletions blocks/calendar_upcoming/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
function xmldb_block_calendar_upcoming_upgrade($oldversion, $block) {
global $CFG;

// Automatically generated Moodle v3.2.0 release upgrade line.
// Put any upgrade step following this.

// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.

Expand Down
Loading

0 comments on commit 792267c

Please sign in to comment.