Skip to content

Commit

Permalink
MDL-70309 libraries: upgrade mongodb integration files
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranrecio committed Jan 22, 2021
1 parent 4b948f8 commit e161edc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cache/stores/mongodb/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function __construct($name, array $configuration = array()) {
* @return bool
*/
public static function are_requirements_met() {
return version_compare(phpversion('mongodb'), '1.5', 'ge');
return version_compare(phpversion('mongodb'), '1.8', 'ge');
}

/**
Expand Down
3 changes: 2 additions & 1 deletion cache/stores/mongodb/readme_moodle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ Import procedure:
- Copy all the files and folders from the folder mongodb/src in the cache/stores/mongodb/MongoDB directory.
- Copy the license file from the project root.
- Update thirdpartylibs.xml with the latest version.
- Check the minim php driver version in https://docs.mongodb.com/drivers/php#compatibility and change the value in the "are_requirements_met" method if necessary.

This version (1.5.1) requires PHP mongodb extension >= 1.6.0
This version (1.8.0) requires PHP mongodb extension >= 1.8.0
2 changes: 1 addition & 1 deletion cache/stores/mongodb/thirdpartylibs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<location>MongoDB</location>
<name>MongoDB PHP Library</name>
<license>Apache</license>
<version>1.5.1</version>
<version>1.8.0</version>
<licenseversion>2.0</licenseversion>
</library>
</libraries>

0 comments on commit e161edc

Please sign in to comment.