mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-70309 libraries: upgrade mongodb integration files
This commit is contained in:
parent
e941b105ac
commit
e134a42963
3 changed files with 4 additions and 3 deletions
2
cache/stores/mongodb/lib.php
vendored
2
cache/stores/mongodb/lib.php
vendored
|
@ -158,7 +158,7 @@ class cachestore_mongodb extends cache_store implements cache_is_configurable {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function are_requirements_met() {
|
public static function are_requirements_met() {
|
||||||
return version_compare(phpversion('mongodb'), '1.5', 'ge');
|
return version_compare(phpversion('mongodb'), '1.8', 'ge');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
3
cache/stores/mongodb/readme_moodle.txt
vendored
3
cache/stores/mongodb/readme_moodle.txt
vendored
|
@ -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 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.
|
- Copy the license file from the project root.
|
||||||
- Update thirdpartylibs.xml with the latest version.
|
- 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
cache/stores/mongodb/thirdpartylibs.xml
vendored
2
cache/stores/mongodb/thirdpartylibs.xml
vendored
|
@ -4,7 +4,7 @@
|
||||||
<location>MongoDB</location>
|
<location>MongoDB</location>
|
||||||
<name>MongoDB PHP Library</name>
|
<name>MongoDB PHP Library</name>
|
||||||
<license>Apache</license>
|
<license>Apache</license>
|
||||||
<version>1.5.1</version>
|
<version>1.8.0</version>
|
||||||
<licenseversion>2.0</licenseversion>
|
<licenseversion>2.0</licenseversion>
|
||||||
</library>
|
</library>
|
||||||
</libraries>
|
</libraries>
|
Loading…
Add table
Add a link
Reference in a new issue