diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml
index 2a123c838ef..c52e1af698b 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/push.yml
@@ -62,7 +62,7 @@ jobs:
include:
# MySQL builds always run with the lowest PHP supported version.
- os: ubuntu-24.04
- php: 8.2
+ php: 8.3
extensions:
db: mysqli
# PostgreSQL builds always run with the highest PHP supported version.
@@ -88,7 +88,7 @@ jobs:
if: ${{ matrix.db == 'pgsql' }}
uses: m4nu56/postgresql-action@v1
with:
- postgresql version: 15
+ postgresql version: 16
postgresql db: test
postgresql user: test
postgresql password: test
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index e37c9a0eb99..0ed512e8cf4 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -59,7 +59,7 @@ jobs:
db: pgsql
extensions: exif, fileinfo, gd, intl, pgsql, mysql, redis, soap, sodium, zip
- os: windows-latest
- php: 8.2
+ php: 8.3
db: pgsql
extensions: exif, fileinfo, gd, intl, pgsql, mysql, redis, soap, sodium, zip
diff --git a/composer.json b/composer.json
index d2fe183f6d4..e809e96bf5e 100644
--- a/composer.json
+++ b/composer.json
@@ -29,7 +29,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
- "php": ">=8.2.0",
+ "php": ">=8.3.0",
"ext-iconv": "*",
"ext-mbstring": "*",
"ext-curl": "*",
diff --git a/composer.lock b/composer.lock
index ea964a4fd97..3f26a7e6f48 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,30 +4,30 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "6dea3d23fae938df252056489715c946",
+ "content-hash": "b3a530cad5a12422d29343dfb1529720",
"packages": [],
"packages-dev": [
{
"name": "behat/behat",
- "version": "v3.19.0",
+ "version": "v3.26.0",
"source": {
"type": "git",
"url": "https://github.com/Behat/Behat.git",
- "reference": "6cf82375a88145e33e10a34b211a3f914cbd02ee"
+ "reference": "1b6b08efa995fe4135901b862d112adc7e95ecbb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Behat/Behat/zipball/6cf82375a88145e33e10a34b211a3f914cbd02ee",
- "reference": "6cf82375a88145e33e10a34b211a3f914cbd02ee",
+ "url": "https://api.github.com/repos/Behat/Behat/zipball/1b6b08efa995fe4135901b862d112adc7e95ecbb",
+ "reference": "1b6b08efa995fe4135901b862d112adc7e95ecbb",
"shasum": ""
},
"require": {
- "behat/gherkin": "^4.10.0",
- "behat/transliterator": "^1.5",
+ "behat/gherkin": "^4.12.0",
"composer-runtime-api": "^2.2",
- "composer/xdebug-handler": "^3.0",
+ "composer/xdebug-handler": "^1.4 || ^2.0 || ^3.0",
"ext-mbstring": "*",
- "php": "8.1.* || 8.2.* || 8.3.* || 8.4.* ",
+ "nikic/php-parser": "^4.19.2 || ^5.2",
+ "php": ">=8.1 <8.5",
"psr/container": "^1.0 || ^2.0",
"symfony/config": "^5.4 || ^6.4 || ^7.0",
"symfony/console": "^5.4 || ^6.4 || ^7.0",
@@ -38,9 +38,12 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.68",
+ "opis/json-schema": "^2.5",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^9.6",
+ "rector/rector": "2.1.7",
"sebastian/diff": "^4.0",
+ "symfony/filesystem": "^5.4 || ^6.4 || ^7.0",
"symfony/polyfill-php84": "^1.31",
"symfony/process": "^5.4 || ^6.4 || ^7.0"
},
@@ -95,36 +98,36 @@
],
"support": {
"issues": "https://github.com/Behat/Behat/issues",
- "source": "https://github.com/Behat/Behat/tree/v3.19.0"
+ "source": "https://github.com/Behat/Behat/tree/v3.26.0"
},
- "time": "2025-02-13T09:07:11+00:00"
+ "time": "2025-10-29T09:46:14+00:00"
},
{
"name": "behat/gherkin",
- "version": "v4.12.0",
+ "version": "v4.15.0",
"source": {
"type": "git",
"url": "https://github.com/Behat/Gherkin.git",
- "reference": "cc3a7e224b36373be382b53ef02ede0f1807bb58"
+ "reference": "05a7459283e8e6af0d46ec25b8bb5960ca3cfa7b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Behat/Gherkin/zipball/cc3a7e224b36373be382b53ef02ede0f1807bb58",
- "reference": "cc3a7e224b36373be382b53ef02ede0f1807bb58",
+ "url": "https://api.github.com/repos/Behat/Gherkin/zipball/05a7459283e8e6af0d46ec25b8bb5960ca3cfa7b",
+ "reference": "05a7459283e8e6af0d46ec25b8bb5960ca3cfa7b",
"shasum": ""
},
"require": {
"composer-runtime-api": "^2.2",
- "php": "8.1.* || 8.2.* || 8.3.* || 8.4.*"
+ "php": ">=8.1 <8.6"
},
"require-dev": {
- "cucumber/cucumber": "dev-gherkin-24.1.0",
- "friendsofphp/php-cs-fixer": "^3.65",
+ "cucumber/gherkin-monorepo": "dev-gherkin-v36.0.0",
+ "friendsofphp/php-cs-fixer": "^3.77",
+ "mikey179/vfsstream": "^1.6",
"phpstan/extension-installer": "^1",
"phpstan/phpstan": "^2",
"phpstan/phpstan-phpunit": "^2",
"phpunit/phpunit": "^10.5",
- "symfony/filesystem": "^5.4 || ^6.4 || ^7.0",
"symfony/yaml": "^5.4 || ^6.4 || ^7.0"
},
"suggest": {
@@ -137,8 +140,8 @@
}
},
"autoload": {
- "psr-0": {
- "Behat\\Gherkin": "src/"
+ "psr-4": {
+ "Behat\\Gherkin\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -164,9 +167,9 @@
],
"support": {
"issues": "https://github.com/Behat/Gherkin/issues",
- "source": "https://github.com/Behat/Gherkin/tree/v4.12.0"
+ "source": "https://github.com/Behat/Gherkin/tree/v4.15.0"
},
- "time": "2025-02-26T14:28:23+00:00"
+ "time": "2025-11-05T15:34:04+00:00"
},
{
"name": "behat/mink",
@@ -302,55 +305,6 @@
},
"time": "2023-12-09T11:30:50+00:00"
},
- {
- "name": "behat/transliterator",
- "version": "v1.5.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Behat/Transliterator.git",
- "reference": "baac5873bac3749887d28ab68e2f74db3a4408af"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Behat/Transliterator/zipball/baac5873bac3749887d28ab68e2f74db3a4408af",
- "reference": "baac5873bac3749887d28ab68e2f74db3a4408af",
- "shasum": ""
- },
- "require": {
- "php": ">=7.2"
- },
- "require-dev": {
- "chuyskywalker/rolling-curl": "^3.1",
- "php-yaoi/php-yaoi": "^1.0",
- "phpunit/phpunit": "^8.5.25 || ^9.5.19"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Behat\\Transliterator\\": "src/Behat/Transliterator"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "Artistic-1.0"
- ],
- "description": "String transliterator",
- "keywords": [
- "i18n",
- "slug",
- "transliterator"
- ],
- "support": {
- "issues": "https://github.com/Behat/Transliterator/issues",
- "source": "https://github.com/Behat/Transliterator/tree/v1.5.0"
- },
- "time": "2022-03-30T09:27:43+00:00"
- },
{
"name": "composer/pcre",
"version": "3.3.2",
@@ -498,16 +452,16 @@
},
{
"name": "filp/whoops",
- "version": "2.17.0",
+ "version": "2.18.4",
"source": {
"type": "git",
"url": "https://github.com/filp/whoops.git",
- "reference": "075bc0c26631110584175de6523ab3f1652eb28e"
+ "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/filp/whoops/zipball/075bc0c26631110584175de6523ab3f1652eb28e",
- "reference": "075bc0c26631110584175de6523ab3f1652eb28e",
+ "url": "https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d",
+ "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d",
"shasum": ""
},
"require": {
@@ -557,7 +511,7 @@
],
"support": {
"issues": "https://github.com/filp/whoops/issues",
- "source": "https://github.com/filp/whoops/tree/2.17.0"
+ "source": "https://github.com/filp/whoops/tree/2.18.4"
},
"funding": [
{
@@ -565,7 +519,7 @@
"type": "github"
}
],
- "time": "2025-01-25T12:00:00+00:00"
+ "time": "2025-08-08T12:00:00+00:00"
},
{
"name": "friends-of-behat/mink-extension",
@@ -635,16 +589,16 @@
},
{
"name": "masterminds/html5",
- "version": "2.9.0",
+ "version": "2.10.0",
"source": {
"type": "git",
"url": "https://github.com/Masterminds/html5-php.git",
- "reference": "f5ac2c0b0a2eefca70b2ce32a5809992227e75a6"
+ "reference": "fcf91eb64359852f00d921887b219479b4f21251"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f5ac2c0b0a2eefca70b2ce32a5809992227e75a6",
- "reference": "f5ac2c0b0a2eefca70b2ce32a5809992227e75a6",
+ "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/fcf91eb64359852f00d921887b219479b4f21251",
+ "reference": "fcf91eb64359852f00d921887b219479b4f21251",
"shasum": ""
},
"require": {
@@ -696,9 +650,9 @@
],
"support": {
"issues": "https://github.com/Masterminds/html5-php/issues",
- "source": "https://github.com/Masterminds/html5-php/tree/2.9.0"
+ "source": "https://github.com/Masterminds/html5-php/tree/2.10.0"
},
- "time": "2024-03-31T07:05:07+00:00"
+ "time": "2025-07-25T09:04:22+00:00"
},
{
"name": "mikey179/vfsstream",
@@ -754,16 +708,16 @@
},
{
"name": "myclabs/deep-copy",
- "version": "1.13.0",
+ "version": "1.13.4",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "024473a478be9df5fdaca2c793f2232fe788e414"
+ "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/024473a478be9df5fdaca2c793f2232fe788e414",
- "reference": "024473a478be9df5fdaca2c793f2232fe788e414",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a",
+ "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a",
"shasum": ""
},
"require": {
@@ -802,7 +756,7 @@
],
"support": {
"issues": "https://github.com/myclabs/DeepCopy/issues",
- "source": "https://github.com/myclabs/DeepCopy/tree/1.13.0"
+ "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4"
},
"funding": [
{
@@ -810,20 +764,20 @@
"type": "tidelift"
}
],
- "time": "2025-02-12T12:17:51+00:00"
+ "time": "2025-08-01T08:46:24+00:00"
},
{
"name": "nikic/php-parser",
- "version": "v5.4.0",
+ "version": "v5.6.2",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "447a020a1f875a434d62f2a401f53b82a396e494"
+ "reference": "3a454ca033b9e06b63282ce19562e892747449bb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494",
- "reference": "447a020a1f875a434d62f2a401f53b82a396e494",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb",
+ "reference": "3a454ca033b9e06b63282ce19562e892747449bb",
"shasum": ""
},
"require": {
@@ -842,7 +796,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "5.0-dev"
+ "dev-master": "5.x-dev"
}
},
"autoload": {
@@ -866,9 +820,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0"
+ "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.2"
},
- "time": "2024-12-30T11:07:19+00:00"
+ "time": "2025-10-21T19:32:17+00:00"
},
{
"name": "oleg-andreyev/mink-phpwebdriver",
@@ -1122,16 +1076,16 @@
},
{
"name": "phpunit/php-code-coverage",
- "version": "11.0.9",
+ "version": "11.0.11",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "14d63fbcca18457e49c6f8bebaa91a87e8e188d7"
+ "reference": "4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/14d63fbcca18457e49c6f8bebaa91a87e8e188d7",
- "reference": "14d63fbcca18457e49c6f8bebaa91a87e8e188d7",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4",
+ "reference": "4f7722aa9a7b76aa775e2d9d4e95d1ea16eeeef4",
"shasum": ""
},
"require": {
@@ -1188,15 +1142,27 @@
"support": {
"issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
"security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy",
- "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0.9"
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0.11"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
+ },
+ {
+ "url": "https://liberapay.com/sebastianbergmann",
+ "type": "liberapay"
+ },
+ {
+ "url": "https://thanks.dev/u/gh/sebastianbergmann",
+ "type": "thanks_dev"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage",
+ "type": "tidelift"
}
],
- "time": "2025-02-25T13:26:39+00:00"
+ "time": "2025-08-27T14:37:49+00:00"
},
{
"name": "phpunit/php-file-iterator",
@@ -1445,16 +1411,16 @@
},
{
"name": "phpunit/phpunit",
- "version": "11.5.12",
+ "version": "11.5.43",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "d42785840519401ed2113292263795eb4c0f95da"
+ "reference": "c6b89b6cf4324a8b4cb86e1f5dfdd6c9e0371924"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d42785840519401ed2113292263795eb4c0f95da",
- "reference": "d42785840519401ed2113292263795eb4c0f95da",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c6b89b6cf4324a8b4cb86e1f5dfdd6c9e0371924",
+ "reference": "c6b89b6cf4324a8b4cb86e1f5dfdd6c9e0371924",
"shasum": ""
},
"require": {
@@ -1464,24 +1430,24 @@
"ext-mbstring": "*",
"ext-xml": "*",
"ext-xmlwriter": "*",
- "myclabs/deep-copy": "^1.13.0",
+ "myclabs/deep-copy": "^1.13.4",
"phar-io/manifest": "^2.0.4",
"phar-io/version": "^3.2.1",
"php": ">=8.2",
- "phpunit/php-code-coverage": "^11.0.9",
+ "phpunit/php-code-coverage": "^11.0.11",
"phpunit/php-file-iterator": "^5.1.0",
"phpunit/php-invoker": "^5.0.1",
"phpunit/php-text-template": "^4.0.1",
"phpunit/php-timer": "^7.0.1",
"sebastian/cli-parser": "^3.0.2",
- "sebastian/code-unit": "^3.0.2",
- "sebastian/comparator": "^6.3.1",
+ "sebastian/code-unit": "^3.0.3",
+ "sebastian/comparator": "^6.3.2",
"sebastian/diff": "^6.0.2",
- "sebastian/environment": "^7.2.0",
- "sebastian/exporter": "^6.3.0",
+ "sebastian/environment": "^7.2.1",
+ "sebastian/exporter": "^6.3.2",
"sebastian/global-state": "^7.0.2",
"sebastian/object-enumerator": "^6.0.1",
- "sebastian/type": "^5.1.0",
+ "sebastian/type": "^5.1.3",
"sebastian/version": "^5.0.2",
"staabm/side-effects-detector": "^1.0.5"
},
@@ -1526,7 +1492,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
- "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.12"
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.43"
},
"funding": [
{
@@ -1537,12 +1503,20 @@
"url": "https://github.com/sebastianbergmann",
"type": "github"
},
+ {
+ "url": "https://liberapay.com/sebastianbergmann",
+ "type": "liberapay"
+ },
+ {
+ "url": "https://thanks.dev/u/gh/sebastianbergmann",
+ "type": "thanks_dev"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit",
"type": "tidelift"
}
],
- "time": "2025-03-07T07:31:03+00:00"
+ "time": "2025-10-30T08:39:39+00:00"
},
{
"name": "psr/container",
@@ -1756,16 +1730,16 @@
},
{
"name": "sebastian/code-unit",
- "version": "3.0.2",
+ "version": "3.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/code-unit.git",
- "reference": "ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca"
+ "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca",
- "reference": "ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/54391c61e4af8078e5b276ab082b6d3c54c9ad64",
+ "reference": "54391c61e4af8078e5b276ab082b6d3c54c9ad64",
"shasum": ""
},
"require": {
@@ -1801,7 +1775,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/code-unit/issues",
"security": "https://github.com/sebastianbergmann/code-unit/security/policy",
- "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.2"
+ "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.3"
},
"funding": [
{
@@ -1809,7 +1783,7 @@
"type": "github"
}
],
- "time": "2024-12-12T09:59:06+00:00"
+ "time": "2025-03-19T07:56:08+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
@@ -1869,16 +1843,16 @@
},
{
"name": "sebastian/comparator",
- "version": "6.3.1",
+ "version": "6.3.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "24b8fbc2c8e201bb1308e7b05148d6ab393b6959"
+ "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/24b8fbc2c8e201bb1308e7b05148d6ab393b6959",
- "reference": "24b8fbc2c8e201bb1308e7b05148d6ab393b6959",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/85c77556683e6eee4323e4c5468641ca0237e2e8",
+ "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8",
"shasum": ""
},
"require": {
@@ -1937,15 +1911,27 @@
"support": {
"issues": "https://github.com/sebastianbergmann/comparator/issues",
"security": "https://github.com/sebastianbergmann/comparator/security/policy",
- "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.1"
+ "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.2"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
+ },
+ {
+ "url": "https://liberapay.com/sebastianbergmann",
+ "type": "liberapay"
+ },
+ {
+ "url": "https://thanks.dev/u/gh/sebastianbergmann",
+ "type": "thanks_dev"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator",
+ "type": "tidelift"
}
],
- "time": "2025-03-07T06:57:01+00:00"
+ "time": "2025-08-10T08:07:46+00:00"
},
{
"name": "sebastian/complexity",
@@ -2074,23 +2060,23 @@
},
{
"name": "sebastian/environment",
- "version": "7.2.0",
+ "version": "7.2.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5"
+ "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5",
- "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/a5c75038693ad2e8d4b6c15ba2403532647830c4",
+ "reference": "a5c75038693ad2e8d4b6c15ba2403532647830c4",
"shasum": ""
},
"require": {
"php": ">=8.2"
},
"require-dev": {
- "phpunit/phpunit": "^11.0"
+ "phpunit/phpunit": "^11.3"
},
"suggest": {
"ext-posix": "*"
@@ -2126,28 +2112,40 @@
"support": {
"issues": "https://github.com/sebastianbergmann/environment/issues",
"security": "https://github.com/sebastianbergmann/environment/security/policy",
- "source": "https://github.com/sebastianbergmann/environment/tree/7.2.0"
+ "source": "https://github.com/sebastianbergmann/environment/tree/7.2.1"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
+ },
+ {
+ "url": "https://liberapay.com/sebastianbergmann",
+ "type": "liberapay"
+ },
+ {
+ "url": "https://thanks.dev/u/gh/sebastianbergmann",
+ "type": "thanks_dev"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/sebastian/environment",
+ "type": "tidelift"
}
],
- "time": "2024-07-03T04:54:44+00:00"
+ "time": "2025-05-21T11:55:47+00:00"
},
{
"name": "sebastian/exporter",
- "version": "6.3.0",
+ "version": "6.3.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "3473f61172093b2da7de1fb5782e1f24cc036dc3"
+ "reference": "70a298763b40b213ec087c51c739efcaa90bcd74"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/3473f61172093b2da7de1fb5782e1f24cc036dc3",
- "reference": "3473f61172093b2da7de1fb5782e1f24cc036dc3",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/70a298763b40b213ec087c51c739efcaa90bcd74",
+ "reference": "70a298763b40b213ec087c51c739efcaa90bcd74",
"shasum": ""
},
"require": {
@@ -2161,7 +2159,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "6.1-dev"
+ "dev-main": "6.3-dev"
}
},
"autoload": {
@@ -2204,15 +2202,27 @@
"support": {
"issues": "https://github.com/sebastianbergmann/exporter/issues",
"security": "https://github.com/sebastianbergmann/exporter/security/policy",
- "source": "https://github.com/sebastianbergmann/exporter/tree/6.3.0"
+ "source": "https://github.com/sebastianbergmann/exporter/tree/6.3.2"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
+ },
+ {
+ "url": "https://liberapay.com/sebastianbergmann",
+ "type": "liberapay"
+ },
+ {
+ "url": "https://thanks.dev/u/gh/sebastianbergmann",
+ "type": "thanks_dev"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter",
+ "type": "tidelift"
}
],
- "time": "2024-12-05T09:17:50+00:00"
+ "time": "2025-09-24T06:12:51+00:00"
},
{
"name": "sebastian/global-state",
@@ -2450,23 +2460,23 @@
},
{
"name": "sebastian/recursion-context",
- "version": "6.0.2",
+ "version": "6.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "694d156164372abbd149a4b85ccda2e4670c0e16"
+ "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/694d156164372abbd149a4b85ccda2e4670c0e16",
- "reference": "694d156164372abbd149a4b85ccda2e4670c0e16",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/f6458abbf32a6c8174f8f26261475dc133b3d9dc",
+ "reference": "f6458abbf32a6c8174f8f26261475dc133b3d9dc",
"shasum": ""
},
"require": {
"php": ">=8.2"
},
"require-dev": {
- "phpunit/phpunit": "^11.0"
+ "phpunit/phpunit": "^11.3"
},
"type": "library",
"extra": {
@@ -2502,28 +2512,40 @@
"support": {
"issues": "https://github.com/sebastianbergmann/recursion-context/issues",
"security": "https://github.com/sebastianbergmann/recursion-context/security/policy",
- "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.2"
+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.3"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
+ },
+ {
+ "url": "https://liberapay.com/sebastianbergmann",
+ "type": "liberapay"
+ },
+ {
+ "url": "https://thanks.dev/u/gh/sebastianbergmann",
+ "type": "thanks_dev"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context",
+ "type": "tidelift"
}
],
- "time": "2024-07-03T05:10:34+00:00"
+ "time": "2025-08-13T04:42:22+00:00"
},
{
"name": "sebastian/type",
- "version": "5.1.0",
+ "version": "5.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/type.git",
- "reference": "461b9c5da241511a2a0e8f240814fb23ce5c0aac"
+ "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/461b9c5da241511a2a0e8f240814fb23ce5c0aac",
- "reference": "461b9c5da241511a2a0e8f240814fb23ce5c0aac",
+ "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/f77d2d4e78738c98d9a68d2596fe5e8fa380f449",
+ "reference": "f77d2d4e78738c98d9a68d2596fe5e8fa380f449",
"shasum": ""
},
"require": {
@@ -2559,15 +2581,27 @@
"support": {
"issues": "https://github.com/sebastianbergmann/type/issues",
"security": "https://github.com/sebastianbergmann/type/security/policy",
- "source": "https://github.com/sebastianbergmann/type/tree/5.1.0"
+ "source": "https://github.com/sebastianbergmann/type/tree/5.1.3"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
"type": "github"
+ },
+ {
+ "url": "https://liberapay.com/sebastianbergmann",
+ "type": "liberapay"
+ },
+ {
+ "url": "https://thanks.dev/u/gh/sebastianbergmann",
+ "type": "thanks_dev"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/sebastian/type",
+ "type": "tidelift"
}
],
- "time": "2024-09-17T13:12:04+00:00"
+ "time": "2025-08-09T06:55:48+00:00"
},
{
"name": "sebastian/version",
@@ -2677,16 +2711,16 @@
},
{
"name": "symfony/browser-kit",
- "version": "v7.2.4",
+ "version": "v7.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/browser-kit.git",
- "reference": "8ce0ee23857d87d5be493abba2d52d1f9e49da61"
+ "reference": "e9a9fd604296b17bf90939c3647069f1f16ef04e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/browser-kit/zipball/8ce0ee23857d87d5be493abba2d52d1f9e49da61",
- "reference": "8ce0ee23857d87d5be493abba2d52d1f9e49da61",
+ "url": "https://api.github.com/repos/symfony/browser-kit/zipball/e9a9fd604296b17bf90939c3647069f1f16ef04e",
+ "reference": "e9a9fd604296b17bf90939c3647069f1f16ef04e",
"shasum": ""
},
"require": {
@@ -2725,7 +2759,7 @@
"description": "Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/browser-kit/tree/v7.2.4"
+ "source": "https://github.com/symfony/browser-kit/tree/v7.3.6"
},
"funding": [
{
@@ -2736,25 +2770,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-02-14T14:27:24+00:00"
+ "time": "2025-11-05T07:57:47+00:00"
},
{
"name": "symfony/config",
- "version": "v7.2.3",
+ "version": "v7.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/config.git",
- "reference": "7716594aaae91d9141be080240172a92ecca4d44"
+ "reference": "9d18eba95655a3152ae4c1d53c6cc34eb4d4a0b7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/7716594aaae91d9141be080240172a92ecca4d44",
- "reference": "7716594aaae91d9141be080240172a92ecca4d44",
+ "url": "https://api.github.com/repos/symfony/config/zipball/9d18eba95655a3152ae4c1d53c6cc34eb4d4a0b7",
+ "reference": "9d18eba95655a3152ae4c1d53c6cc34eb4d4a0b7",
"shasum": ""
},
"require": {
@@ -2800,7 +2838,7 @@
"description": "Helps you find, load, combine, autofill and validate configuration values of any kind",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/config/tree/v7.2.3"
+ "source": "https://github.com/symfony/config/tree/v7.3.6"
},
"funding": [
{
@@ -2811,32 +2849,37 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-01-22T12:07:01+00:00"
+ "time": "2025-11-02T08:04:43+00:00"
},
{
"name": "symfony/console",
- "version": "v7.2.1",
+ "version": "v7.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3"
+ "reference": "c28ad91448f86c5f6d9d2c70f0cf68bf135f252a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/fefcc18c0f5d0efe3ab3152f15857298868dc2c3",
- "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3",
+ "url": "https://api.github.com/repos/symfony/console/zipball/c28ad91448f86c5f6d9d2c70f0cf68bf135f252a",
+ "reference": "c28ad91448f86c5f6d9d2c70f0cf68bf135f252a",
"shasum": ""
},
"require": {
"php": ">=8.2",
+ "symfony/deprecation-contracts": "^2.5|^3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/service-contracts": "^2.5|^3",
- "symfony/string": "^6.4|^7.0"
+ "symfony/string": "^7.2"
},
"conflict": {
"symfony/dependency-injection": "<6.4",
@@ -2893,7 +2936,7 @@
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v7.2.1"
+ "source": "https://github.com/symfony/console/tree/v7.3.6"
},
"funding": [
{
@@ -2904,25 +2947,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-12-11T03:49:26+00:00"
+ "time": "2025-11-04T01:21:42+00:00"
},
{
"name": "symfony/css-selector",
- "version": "v7.2.0",
+ "version": "v7.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
- "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2"
+ "reference": "84321188c4754e64273b46b406081ad9b18e8614"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/css-selector/zipball/601a5ce9aaad7bf10797e3663faefce9e26c24e2",
- "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2",
+ "url": "https://api.github.com/repos/symfony/css-selector/zipball/84321188c4754e64273b46b406081ad9b18e8614",
+ "reference": "84321188c4754e64273b46b406081ad9b18e8614",
"shasum": ""
},
"require": {
@@ -2958,7 +3005,7 @@
"description": "Converts CSS selectors to XPath expressions",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/css-selector/tree/v7.2.0"
+ "source": "https://github.com/symfony/css-selector/tree/v7.3.6"
},
"funding": [
{
@@ -2969,25 +3016,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-09-25T14:21:43+00:00"
+ "time": "2025-10-29T17:24:25+00:00"
},
{
"name": "symfony/dependency-injection",
- "version": "v7.2.4",
+ "version": "v7.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/dependency-injection.git",
- "reference": "f0a1614cccb4b8431a97076f9debc08ddca321ca"
+ "reference": "98af8bb46c56aedd9dd5a7f0414fc72bf2dcfe69"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/f0a1614cccb4b8431a97076f9debc08ddca321ca",
- "reference": "f0a1614cccb4b8431a97076f9debc08ddca321ca",
+ "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/98af8bb46c56aedd9dd5a7f0414fc72bf2dcfe69",
+ "reference": "98af8bb46c56aedd9dd5a7f0414fc72bf2dcfe69",
"shasum": ""
},
"require": {
@@ -2995,7 +3046,7 @@
"psr/container": "^1.1|^2.0",
"symfony/deprecation-contracts": "^2.5|^3",
"symfony/service-contracts": "^3.5",
- "symfony/var-exporter": "^6.4|^7.0"
+ "symfony/var-exporter": "^6.4.20|^7.2.5"
},
"conflict": {
"ext-psr": "<1.1|>=2",
@@ -3038,7 +3089,7 @@
"description": "Allows you to standardize and centralize the way objects are constructed in your application",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/dependency-injection/tree/v7.2.4"
+ "source": "https://github.com/symfony/dependency-injection/tree/v7.3.6"
},
"funding": [
{
@@ -3049,25 +3100,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-02-21T09:47:16+00:00"
+ "time": "2025-10-31T10:11:11+00:00"
},
{
"name": "symfony/deprecation-contracts",
- "version": "v3.5.1",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
+ "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
- "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62",
+ "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62",
"shasum": ""
},
"require": {
@@ -3080,7 +3135,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -3105,7 +3160,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0"
},
"funding": [
{
@@ -3121,20 +3176,20 @@
"type": "tidelift"
}
],
- "time": "2024-09-25T14:20:29+00:00"
+ "time": "2024-09-25T14:21:43+00:00"
},
{
"name": "symfony/dom-crawler",
- "version": "v7.2.4",
+ "version": "v7.3.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/dom-crawler.git",
- "reference": "19cc7b08efe9ad1ab1b56e0948e8d02e15ed3ef7"
+ "reference": "efa076ea0eeff504383ff0dcf827ea5ce15690ba"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/19cc7b08efe9ad1ab1b56e0948e8d02e15ed3ef7",
- "reference": "19cc7b08efe9ad1ab1b56e0948e8d02e15ed3ef7",
+ "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/efa076ea0eeff504383ff0dcf827ea5ce15690ba",
+ "reference": "efa076ea0eeff504383ff0dcf827ea5ce15690ba",
"shasum": ""
},
"require": {
@@ -3172,7 +3227,7 @@
"description": "Eases DOM navigation for HTML and XML documents",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/dom-crawler/tree/v7.2.4"
+ "source": "https://github.com/symfony/dom-crawler/tree/v7.3.3"
},
"funding": [
{
@@ -3183,25 +3238,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-02-17T15:53:07+00:00"
+ "time": "2025-08-06T20:13:54+00:00"
},
{
"name": "symfony/event-dispatcher",
- "version": "v7.2.0",
+ "version": "v7.3.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1"
+ "reference": "b7dc69e71de420ac04bc9ab830cf3ffebba48191"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/910c5db85a5356d0fea57680defec4e99eb9c8c1",
- "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/b7dc69e71de420ac04bc9ab830cf3ffebba48191",
+ "reference": "b7dc69e71de420ac04bc9ab830cf3ffebba48191",
"shasum": ""
},
"require": {
@@ -3252,7 +3311,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/event-dispatcher/tree/v7.2.0"
+ "source": "https://github.com/symfony/event-dispatcher/tree/v7.3.3"
},
"funding": [
{
@@ -3263,25 +3322,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-09-25T14:21:43+00:00"
+ "time": "2025-08-13T11:49:31+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
- "version": "v3.5.1",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
- "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f"
+ "reference": "59eb412e93815df44f05f342958efa9f46b1e586"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7642f5e970b672283b7823222ae8ef8bbc160b9f",
- "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586",
+ "reference": "59eb412e93815df44f05f342958efa9f46b1e586",
"shasum": ""
},
"require": {
@@ -3295,7 +3358,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -3328,7 +3391,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.1"
+ "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0"
},
"funding": [
{
@@ -3344,20 +3407,20 @@
"type": "tidelift"
}
],
- "time": "2024-09-25T14:20:29+00:00"
+ "time": "2024-09-25T14:21:43+00:00"
},
{
"name": "symfony/filesystem",
- "version": "v7.2.0",
+ "version": "v7.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
- "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb"
+ "reference": "e9bcfd7837928ab656276fe00464092cc9e1826a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/b8dce482de9d7c9fe2891155035a7248ab5c7fdb",
- "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/e9bcfd7837928ab656276fe00464092cc9e1826a",
+ "reference": "e9bcfd7837928ab656276fe00464092cc9e1826a",
"shasum": ""
},
"require": {
@@ -3394,7 +3457,7 @@
"description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/filesystem/tree/v7.2.0"
+ "source": "https://github.com/symfony/filesystem/tree/v7.3.6"
},
"funding": [
{
@@ -3405,25 +3468,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-10-25T15:15:23+00:00"
+ "time": "2025-11-05T09:52:27+00:00"
},
{
"name": "symfony/http-client",
- "version": "v7.2.4",
+ "version": "v7.3.6",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-client.git",
- "reference": "78981a2ffef6437ed92d4d7e2a86a82f256c6dc6"
+ "reference": "3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-client/zipball/78981a2ffef6437ed92d4d7e2a86a82f256c6dc6",
- "reference": "78981a2ffef6437ed92d4d7e2a86a82f256c6dc6",
+ "url": "https://api.github.com/repos/symfony/http-client/zipball/3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de",
+ "reference": "3c0a55a2c8e21e30a37022801c11c7ab5a6cb2de",
"shasum": ""
},
"require": {
@@ -3431,10 +3498,12 @@
"psr/log": "^1|^2|^3",
"symfony/deprecation-contracts": "^2.5|^3",
"symfony/http-client-contracts": "~3.4.4|^3.5.2",
+ "symfony/polyfill-php83": "^1.29",
"symfony/service-contracts": "^2.5|^3"
},
"conflict": {
"amphp/amp": "<2.5",
+ "amphp/socket": "<1.1",
"php-http/discovery": "<1.15",
"symfony/http-foundation": "<6.4"
},
@@ -3447,7 +3516,6 @@
"require-dev": {
"amphp/http-client": "^4.2.1|^5.0",
"amphp/http-tunnel": "^1.0|^2.0",
- "amphp/socket": "^1.1",
"guzzlehttp/promises": "^1.4|^2.0",
"nyholm/psr7": "^1.0",
"php-http/httplug": "^1.0|^2.0",
@@ -3489,7 +3557,7 @@
"http"
],
"support": {
- "source": "https://github.com/symfony/http-client/tree/v7.2.4"
+ "source": "https://github.com/symfony/http-client/tree/v7.3.6"
},
"funding": [
{
@@ -3500,25 +3568,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-02-13T10:27:23+00:00"
+ "time": "2025-11-05T17:41:46+00:00"
},
{
"name": "symfony/http-client-contracts",
- "version": "v3.5.2",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-client-contracts.git",
- "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645"
+ "reference": "75d7043853a42837e68111812f4d964b01e5101c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/ee8d807ab20fcb51267fdace50fbe3494c31e645",
- "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645",
+ "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/75d7043853a42837e68111812f4d964b01e5101c",
+ "reference": "75d7043853a42837e68111812f4d964b01e5101c",
"shasum": ""
},
"require": {
@@ -3531,7 +3603,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -3567,7 +3639,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/http-client-contracts/tree/v3.5.2"
+ "source": "https://github.com/symfony/http-client-contracts/tree/v3.6.0"
},
"funding": [
{
@@ -3583,20 +3655,20 @@
"type": "tidelift"
}
],
- "time": "2024-12-07T08:49:48+00:00"
+ "time": "2025-04-29T11:18:49+00:00"
},
{
"name": "symfony/mime",
- "version": "v7.2.4",
+ "version": "v7.3.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/mime.git",
- "reference": "87ca22046b78c3feaff04b337f33b38510fd686b"
+ "reference": "b1b828f69cbaf887fa835a091869e55df91d0e35"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/mime/zipball/87ca22046b78c3feaff04b337f33b38510fd686b",
- "reference": "87ca22046b78c3feaff04b337f33b38510fd686b",
+ "url": "https://api.github.com/repos/symfony/mime/zipball/b1b828f69cbaf887fa835a091869e55df91d0e35",
+ "reference": "b1b828f69cbaf887fa835a091869e55df91d0e35",
"shasum": ""
},
"require": {
@@ -3651,7 +3723,7 @@
"mime-type"
],
"support": {
- "source": "https://github.com/symfony/mime/tree/v7.2.4"
+ "source": "https://github.com/symfony/mime/tree/v7.3.4"
},
"funding": [
{
@@ -3662,16 +3734,20 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-02-19T08:51:20+00:00"
+ "time": "2025-09-16T08:38:17+00:00"
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.31.0",
+ "version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
@@ -3730,7 +3806,7 @@
"portable"
],
"support": {
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0"
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0"
},
"funding": [
{
@@ -3741,6 +3817,10 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
@@ -3750,16 +3830,16 @@
},
{
"name": "symfony/polyfill-intl-grapheme",
- "version": "v1.31.0",
+ "version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
- "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe"
+ "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe",
- "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70",
+ "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70",
"shasum": ""
},
"require": {
@@ -3808,7 +3888,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0"
+ "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0"
},
"funding": [
{
@@ -3819,25 +3899,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-09-09T11:45:10+00:00"
+ "time": "2025-06-27T09:58:17+00:00"
},
{
"name": "symfony/polyfill-intl-idn",
- "version": "v1.31.0",
+ "version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-idn.git",
- "reference": "c36586dcf89a12315939e00ec9b4474adcb1d773"
+ "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/c36586dcf89a12315939e00ec9b4474adcb1d773",
- "reference": "c36586dcf89a12315939e00ec9b4474adcb1d773",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3",
+ "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3",
"shasum": ""
},
"require": {
@@ -3891,7 +3975,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.31.0"
+ "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.33.0"
},
"funding": [
{
@@ -3902,16 +3986,20 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-09-09T11:45:10+00:00"
+ "time": "2024-09-10T14:38:51+00:00"
},
{
"name": "symfony/polyfill-intl-normalizer",
- "version": "v1.31.0",
+ "version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
@@ -3972,7 +4060,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0"
+ "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0"
},
"funding": [
{
@@ -3983,6 +4071,10 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
@@ -3992,19 +4084,20 @@
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.31.0",
+ "version": "v1.33.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341"
+ "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341",
- "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493",
+ "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493",
"shasum": ""
},
"require": {
+ "ext-iconv": "*",
"php": ">=7.2"
},
"provide": {
@@ -4052,7 +4145,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0"
+ "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0"
},
"funding": [
{
@@ -4063,25 +4156,109 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-09-09T11:45:10+00:00"
+ "time": "2024-12-23T08:48:59+00:00"
},
{
- "name": "symfony/process",
- "version": "v7.2.4",
+ "name": "symfony/polyfill-php83",
+ "version": "v1.33.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/process.git",
- "reference": "d8f411ff3c7ddc4ae9166fb388d1190a2df5b5cf"
+ "url": "https://github.com/symfony/polyfill-php83.git",
+ "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/d8f411ff3c7ddc4ae9166fb388d1190a2df5b5cf",
- "reference": "d8f411ff3c7ddc4ae9166fb388d1190a2df5b5cf",
+ "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/17f6f9a6b1735c0f163024d959f700cfbc5155e5",
+ "reference": "17f6f9a6b1735c0f163024d959f700cfbc5155e5",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2"
+ },
+ "type": "library",
+ "extra": {
+ "thanks": {
+ "url": "https://github.com/symfony/polyfill",
+ "name": "symfony/polyfill"
+ }
+ },
+ "autoload": {
+ "files": [
+ "bootstrap.php"
+ ],
+ "psr-4": {
+ "Symfony\\Polyfill\\Php83\\": ""
+ },
+ "classmap": [
+ "Resources/stubs"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "polyfill",
+ "portable",
+ "shim"
+ ],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-php83/tree/v1.33.0"
+ },
+ "funding": [
+ {
+ "url": "https://symfony.com/sponsor",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/fabpot",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2025-07-08T02:45:35+00:00"
+ },
+ {
+ "name": "symfony/process",
+ "version": "v7.3.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/process.git",
+ "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/process/zipball/f24f8f316367b30810810d4eb30c543d7003ff3b",
+ "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b",
"shasum": ""
},
"require": {
@@ -4113,7 +4290,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/process/tree/v7.2.4"
+ "source": "https://github.com/symfony/process/tree/v7.3.4"
},
"funding": [
{
@@ -4124,25 +4301,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-02-05T08:33:46+00:00"
+ "time": "2025-09-11T10:12:26+00:00"
},
{
"name": "symfony/service-contracts",
- "version": "v3.5.1",
+ "version": "v3.6.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
- "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0"
+ "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0",
- "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43",
+ "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43",
"shasum": ""
},
"require": {
@@ -4160,7 +4341,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -4196,7 +4377,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/service-contracts/tree/v3.5.1"
+ "source": "https://github.com/symfony/service-contracts/tree/v3.6.1"
},
"funding": [
{
@@ -4207,25 +4388,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-09-25T14:20:29+00:00"
+ "time": "2025-07-15T11:30:57+00:00"
},
{
"name": "symfony/string",
- "version": "v7.2.0",
+ "version": "v7.3.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82"
+ "reference": "f96476035142921000338bad71e5247fbc138872"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/446e0d146f991dde3e73f45f2c97a9faad773c82",
- "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82",
+ "url": "https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872",
+ "reference": "f96476035142921000338bad71e5247fbc138872",
"shasum": ""
},
"require": {
@@ -4240,7 +4425,6 @@
},
"require-dev": {
"symfony/emoji": "^7.1",
- "symfony/error-handler": "^6.4|^7.0",
"symfony/http-client": "^6.4|^7.0",
"symfony/intl": "^6.4|^7.0",
"symfony/translation-contracts": "^2.5|^3.0",
@@ -4283,7 +4467,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v7.2.0"
+ "source": "https://github.com/symfony/string/tree/v7.3.4"
},
"funding": [
{
@@ -4294,25 +4478,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-11-13T13:31:26+00:00"
+ "time": "2025-09-11T14:36:48+00:00"
},
{
"name": "symfony/translation",
- "version": "v7.2.4",
+ "version": "v7.3.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
- "reference": "283856e6981286cc0d800b53bd5703e8e363f05a"
+ "reference": "ec25870502d0c7072d086e8ffba1420c85965174"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/translation/zipball/283856e6981286cc0d800b53bd5703e8e363f05a",
- "reference": "283856e6981286cc0d800b53bd5703e8e363f05a",
+ "url": "https://api.github.com/repos/symfony/translation/zipball/ec25870502d0c7072d086e8ffba1420c85965174",
+ "reference": "ec25870502d0c7072d086e8ffba1420c85965174",
"shasum": ""
},
"require": {
@@ -4322,6 +4510,7 @@
"symfony/translation-contracts": "^2.5|^3.0"
},
"conflict": {
+ "nikic/php-parser": "<5.0",
"symfony/config": "<6.4",
"symfony/console": "<6.4",
"symfony/dependency-injection": "<6.4",
@@ -4335,7 +4524,7 @@
"symfony/translation-implementation": "2.3|3.0"
},
"require-dev": {
- "nikic/php-parser": "^4.18|^5.0",
+ "nikic/php-parser": "^5.0",
"psr/log": "^1|^2|^3",
"symfony/config": "^6.4|^7.0",
"symfony/console": "^6.4|^7.0",
@@ -4378,7 +4567,7 @@
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/translation/tree/v7.2.4"
+ "source": "https://github.com/symfony/translation/tree/v7.3.4"
},
"funding": [
{
@@ -4389,25 +4578,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-02-13T10:27:23+00:00"
+ "time": "2025-09-07T11:39:36+00:00"
},
{
"name": "symfony/translation-contracts",
- "version": "v3.5.1",
+ "version": "v3.6.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation-contracts.git",
- "reference": "4667ff3bd513750603a09c8dedbea942487fb07c"
+ "reference": "65a8bc82080447fae78373aa10f8d13b38338977"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/4667ff3bd513750603a09c8dedbea942487fb07c",
- "reference": "4667ff3bd513750603a09c8dedbea942487fb07c",
+ "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/65a8bc82080447fae78373aa10f8d13b38338977",
+ "reference": "65a8bc82080447fae78373aa10f8d13b38338977",
"shasum": ""
},
"require": {
@@ -4420,7 +4613,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -4456,7 +4649,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/translation-contracts/tree/v3.5.1"
+ "source": "https://github.com/symfony/translation-contracts/tree/v3.6.1"
},
"funding": [
{
@@ -4467,29 +4660,34 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2024-09-25T14:20:29+00:00"
+ "time": "2025-07-15T13:41:35+00:00"
},
{
"name": "symfony/var-exporter",
- "version": "v7.2.4",
+ "version": "v7.3.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-exporter.git",
- "reference": "4ede73aa7a73d81506002d2caadbbdad1ef5b69a"
+ "reference": "0f020b544a30a7fe8ba972e53ee48a74c0bc87f4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/var-exporter/zipball/4ede73aa7a73d81506002d2caadbbdad1ef5b69a",
- "reference": "4ede73aa7a73d81506002d2caadbbdad1ef5b69a",
+ "url": "https://api.github.com/repos/symfony/var-exporter/zipball/0f020b544a30a7fe8ba972e53ee48a74c0bc87f4",
+ "reference": "0f020b544a30a7fe8ba972e53ee48a74c0bc87f4",
"shasum": ""
},
"require": {
- "php": ">=8.2"
+ "php": ">=8.2",
+ "symfony/deprecation-contracts": "^2.5|^3"
},
"require-dev": {
"symfony/property-access": "^6.4|^7.0",
@@ -4532,7 +4730,7 @@
"serialize"
],
"support": {
- "source": "https://github.com/symfony/var-exporter/tree/v7.2.4"
+ "source": "https://github.com/symfony/var-exporter/tree/v7.3.4"
},
"funding": [
{
@@ -4543,25 +4741,29 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-02-13T10:27:23+00:00"
+ "time": "2025-09-11T10:12:26+00:00"
},
{
"name": "symfony/yaml",
- "version": "v7.2.3",
+ "version": "v7.3.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
- "reference": "ac238f173df0c9c1120f862d0f599e17535a87ec"
+ "reference": "90208e2fc6f68f613eae7ca25a2458a931b1bacc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/ac238f173df0c9c1120f862d0f599e17535a87ec",
- "reference": "ac238f173df0c9c1120f862d0f599e17535a87ec",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/90208e2fc6f68f613eae7ca25a2458a931b1bacc",
+ "reference": "90208e2fc6f68f613eae7ca25a2458a931b1bacc",
"shasum": ""
},
"require": {
@@ -4604,7 +4806,7 @@
"description": "Loads and dumps YAML files",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/yaml/tree/v7.2.3"
+ "source": "https://github.com/symfony/yaml/tree/v7.3.5"
},
"funding": [
{
@@ -4615,12 +4817,16 @@
"url": "https://github.com/fabpot",
"type": "github"
},
+ {
+ "url": "https://github.com/nicolas-grekas",
+ "type": "github"
+ },
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
- "time": "2025-01-07T12:55:42+00:00"
+ "time": "2025-09-27T09:00:46+00:00"
},
{
"name": "theseer/tokenizer",
@@ -4679,7 +4885,7 @@
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
- "php": ">=8.2.0",
+ "php": ">=8.3.0",
"ext-iconv": "*",
"ext-mbstring": "*",
"ext-curl": "*",
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index c12b949dde0..6bd7e4391eb 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -1,5 +1,5 @@
-
+
diff --git a/public/admin/environment.xml b/public/admin/environment.xml
index f71376c6cd6..c94f1737038 100644
--- a/public/admin/environment.xml
+++ b/public/admin/environment.xml
@@ -5108,4 +5108,208 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/admin/tool/cohortroles/db/upgrade.php b/public/admin/tool/cohortroles/db/upgrade.php
index 93ab547e8a9..630d9b9900d 100644
--- a/public/admin/tool/cohortroles/db/upgrade.php
+++ b/public/admin/tool/cohortroles/db/upgrade.php
@@ -29,22 +29,6 @@
* @return bool result
*/
function xmldb_tool_cohortroles_upgrade($oldversion) {
- global $DB;
-
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023042401) {
- // Delete any tool_cohortroles mappings for users who no longer exist.
- $DB->delete_records_select('tool_cohortroles', 'userid NOT IN (SELECT id FROM {user} WHERE deleted = 0)');
-
- // Cohortroles savepoint reached.
- upgrade_plugin_savepoint(true, 2023042401, 'tool', 'cohortroles');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/customlang/db/upgrade.php b/public/admin/tool/customlang/db/upgrade.php
index 465980a1bfd..f7a9e49e646 100644
--- a/public/admin/tool/customlang/db/upgrade.php
+++ b/public/admin/tool/customlang/db/upgrade.php
@@ -24,12 +24,6 @@
*/
function xmldb_tool_customlang_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/dataprivacy/db/upgrade.php b/public/admin/tool/dataprivacy/db/upgrade.php
index 83fb04f91cf..9fbc209c335 100644
--- a/public/admin/tool/dataprivacy/db/upgrade.php
+++ b/public/admin/tool/dataprivacy/db/upgrade.php
@@ -29,77 +29,6 @@
* @return bool result
*/
function xmldb_tool_dataprivacy_upgrade($oldversion) {
- global $CFG, $DB;
-
- $dbman = $DB->get_manager();
-
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023062700) {
- // Define table tool_dataprivacy_contextlist to be created.
- $table = new xmldb_table('tool_dataprivacy_contextlist');
-
- // Adding fields to table tool_dataprivacy_contextlist.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('component', XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null);
- $table->add_field('timecreated', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0');
- $table->add_field('timemodified', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0');
-
- // Adding keys to table tool_dataprivacy_contextlist.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
-
- // Conditionally launch create table for tool_dataprivacy_contextlist.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Define table tool_dataprivacy_ctxlst_ctx to be created.
- $table = new xmldb_table('tool_dataprivacy_ctxlst_ctx');
-
- // Adding fields to table tool_dataprivacy_ctxlst_ctx.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('contextid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('contextlistid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('status', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, '0');
- $table->add_field('timecreated', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0');
- $table->add_field('timemodified', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0');
-
- // Adding keys to table tool_dataprivacy_ctxlst_ctx.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
- $table->add_key('contextlistid', XMLDB_KEY_FOREIGN, ['contextlistid'], 'tool_dataprivacy_contextlist', ['id']);
-
- // Conditionally launch create table for tool_dataprivacy_ctxlst_ctx.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Define table tool_dataprivacy_rqst_ctxlst to be created.
- $table = new xmldb_table('tool_dataprivacy_rqst_ctxlst');
-
- // Adding fields to table tool_dataprivacy_rqst_ctxlst.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('requestid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('contextlistid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
-
- // Adding keys to table tool_dataprivacy_rqst_ctxlst.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
- $table->add_key('requestid', XMLDB_KEY_FOREIGN, ['requestid'], 'tool_dataprivacy_request', ['id']);
- $table->add_key('contextlistid', XMLDB_KEY_FOREIGN, ['contextlistid'], 'tool_dataprivacy_contextlist', ['id']);
- $table->add_key('requestidcontextlistid', XMLDB_KEY_UNIQUE, ['requestid', 'contextlistid']);
-
- // Conditionally launch create table for tool_dataprivacy_rqst_ctxlst.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Dataprivacy savepoint reached.
- upgrade_plugin_savepoint(true, 2023062700, 'tool', 'dataprivacy');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/log/db/upgrade.php b/public/admin/tool/log/db/upgrade.php
index c300988e9b8..0c38b67558f 100644
--- a/public/admin/tool/log/db/upgrade.php
+++ b/public/admin/tool/log/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool always true
*/
function xmldb_tool_log_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/log/store/database/db/upgrade.php b/public/admin/tool/log/store/database/db/upgrade.php
index 5ab4f80d958..dad736c2126 100644
--- a/public/admin/tool/log/store/database/db/upgrade.php
+++ b/public/admin/tool/log/store/database/db/upgrade.php
@@ -23,12 +23,6 @@
*/
function xmldb_logstore_database_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/log/store/standard/db/upgrade.php b/public/admin/tool/log/store/standard/db/upgrade.php
index 32a2a2309d2..75ae5bd9e2c 100644
--- a/public/admin/tool/log/store/standard/db/upgrade.php
+++ b/public/admin/tool/log/store/standard/db/upgrade.php
@@ -23,12 +23,6 @@
*/
function xmldb_logstore_standard_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/mfa/factor/auth/db/upgrade.php b/public/admin/tool/mfa/factor/auth/db/upgrade.php
index 4e443b4bf51..507532b6b77 100644
--- a/public/admin/tool/mfa/factor/auth/db/upgrade.php
+++ b/public/admin/tool/mfa/factor/auth/db/upgrade.php
@@ -28,26 +28,6 @@
* @param int $oldversion
*/
function xmldb_factor_auth_upgrade($oldversion) {
- if ($oldversion < 2021020500) {
- $authtypes = get_enabled_auth_plugins(true);
- // Upgrade goodauth config from number to name.
- $goodauth = explode(',', get_config('factor_auth', 'goodauth'));
- $newauths = [];
- foreach ($goodauth as $auth) {
- // Check if index exists before access. If not, ignore, settings were out of sync.
- if (array_key_exists($auth, $authtypes)) {
- $newauths[] = $authtypes[$auth];
- }
- }
- set_config('goodauth', implode(',', $newauths), 'factor_auth');
-
- // MFA savepoint reached.
- upgrade_plugin_savepoint(true, 2021020500, 'factor', 'auth');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/mobile/db/upgrade.php b/public/admin/tool/mobile/db/upgrade.php
index 612e6866f66..be4536edd40 100644
--- a/public/admin/tool/mobile/db/upgrade.php
+++ b/public/admin/tool/mobile/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool always true
*/
function xmldb_tool_mobile_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/monitor/db/upgrade.php b/public/admin/tool/monitor/db/upgrade.php
index b90f7536df8..9ec9f75c84d 100644
--- a/public/admin/tool/monitor/db/upgrade.php
+++ b/public/admin/tool/monitor/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool always true
*/
function xmldb_tool_monitor_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/moodlenet/db/upgrade.php b/public/admin/tool/moodlenet/db/upgrade.php
index 49f0d96dfb0..7fab58ed894 100644
--- a/public/admin/tool/moodlenet/db/upgrade.php
+++ b/public/admin/tool/moodlenet/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool always true
*/
function xmldb_tool_moodlenet_upgrade(int $oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/policy/db/upgrade.php b/public/admin/tool/policy/db/upgrade.php
index a39d0d670db..c827b5cda04 100644
--- a/public/admin/tool/policy/db/upgrade.php
+++ b/public/admin/tool/policy/db/upgrade.php
@@ -30,12 +30,6 @@
* @return bool
*/
function xmldb_tool_policy_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/recyclebin/db/upgrade.php b/public/admin/tool/recyclebin/db/upgrade.php
index 1e485479904..4d98c492a94 100644
--- a/public/admin/tool/recyclebin/db/upgrade.php
+++ b/public/admin/tool/recyclebin/db/upgrade.php
@@ -33,12 +33,6 @@ function xmldb_tool_recyclebin_upgrade($oldversion) {
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/admin/tool/usertours/db/upgrade.php b/public/admin/tool/usertours/db/upgrade.php
index cab38bf4e21..8e1ab053b33 100644
--- a/public/admin/tool/usertours/db/upgrade.php
+++ b/public/admin/tool/usertours/db/upgrade.php
@@ -32,20 +32,6 @@ use tool_usertours\tour;
* @return bool
*/
function xmldb_tool_usertours_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023053000) {
- // Update shipped tours.
- // Normally, we just bump the version numbers because we need to call update_shipped_tours only once.
- manager::update_shipped_tours();
-
- upgrade_plugin_savepoint(true, 2023053000, 'tool', 'usertours');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/analytics/tests/model_test.php b/public/analytics/tests/model_test.php
index 3912a8d11c5..02b841b3d86 100644
--- a/public/analytics/tests/model_test.php
+++ b/public/analytics/tests/model_test.php
@@ -54,7 +54,7 @@ final class model_test extends \advanced_testcase {
public function setUp(): void {
parent::setUp();
-
+ $this->resetAfterTest();
$this->setAdminUser();
$target = \core_analytics\manager::get_target('test_target_shortname');
@@ -68,8 +68,6 @@ final class model_test extends \advanced_testcase {
}
public function test_enable(): void {
- $this->resetAfterTest(true);
-
$this->assertEquals(0, $this->model->get_model_obj()->enabled);
$this->assertEquals(0, $this->model->get_model_obj()->trained);
$this->assertEquals('', $this->model->get_model_obj()->timesplitting);
@@ -81,8 +79,6 @@ final class model_test extends \advanced_testcase {
}
public function test_create(): void {
- $this->resetAfterTest(true);
-
$target = \core_analytics\manager::get_target('\core_course\analytics\target\course_dropout');
$indicators = array(
\core_analytics\manager::get_indicator('\core\analytics\indicator\any_write_action'),
@@ -194,7 +190,6 @@ final class model_test extends \advanced_testcase {
*/
public function test_clear_static(): void {
global $DB;
- $this->resetAfterTest();
$statictarget = new \test_static_target_shortname();
$indicators['test_indicator_max'] = \core_analytics\manager::get_indicator('test_indicator_max');
@@ -211,8 +206,6 @@ final class model_test extends \advanced_testcase {
}
public function test_model_manager(): void {
- $this->resetAfterTest(true);
-
$this->assertCount(3, $this->model->get_indicators());
$this->assertInstanceOf('\core_analytics\local\target\binary', $this->model->get_target());
@@ -225,8 +218,6 @@ final class model_test extends \advanced_testcase {
}
public function test_output_dir(): void {
- $this->resetAfterTest(true);
-
$dir = make_request_directory();
set_config('modeloutputdir', $dir, 'analytics');
@@ -237,9 +228,6 @@ final class model_test extends \advanced_testcase {
public function test_unique_id(): void {
global $DB;
-
- $this->resetAfterTest(true);
-
$originaluniqueid = $this->model->get_unique_id();
// Same id across instances.
@@ -283,8 +271,6 @@ final class model_test extends \advanced_testcase {
* @return void
*/
public function test_exists(): void {
- $this->resetAfterTest(true);
-
$target = \core_analytics\manager::get_target('\core_course\analytics\target\no_teaching');
$this->assertTrue(\core_analytics\model::exists($target));
@@ -302,9 +288,6 @@ final class model_test extends \advanced_testcase {
*/
public function test_model_timelimit(): void {
global $DB;
-
- $this->resetAfterTest(true);
-
set_config('modeltimelimit', 2, 'analytics');
$courses = array();
@@ -365,8 +348,6 @@ final class model_test extends \advanced_testcase {
* Test model_config::get_class_component.
*/
public function test_model_config_get_class_component(): void {
- $this->resetAfterTest(true);
-
$this->assertEquals('core',
\core_analytics\model_config::get_class_component('\\core\\analytics\\indicator\\read_actions'));
$this->assertEquals('core',
@@ -387,8 +368,6 @@ final class model_test extends \advanced_testcase {
$this->markTestSkipped('mlbackend_python is not configured.');
}
- $this->resetAfterTest(true);
-
$this->model->enable('\\core\\analytics\\time_splitting\\quarters');
$zipfilepath = $this->model->export_model('yeah-config.zip');
@@ -408,8 +387,6 @@ final class model_test extends \advanced_testcase {
* Test can export configuration
*/
public function test_can_export_configuration(): void {
- $this->resetAfterTest(true);
-
// No time splitting method.
$this->assertFalse($this->model->can_export_configuration());
@@ -433,8 +410,6 @@ final class model_test extends \advanced_testcase {
$this->markTestSkipped('mlbackend_python is not configured.');
}
- $this->resetAfterTest(true);
-
$this->model->enable('\\core\\analytics\\time_splitting\\quarters');
$modelconfig = new \core_analytics\model_config($this->model);
@@ -463,8 +438,6 @@ final class model_test extends \advanced_testcase {
public function test_inplace_editable_name(): void {
global $PAGE;
- $this->resetAfterTest();
-
$output = new \core_renderer($PAGE, RENDERER_TARGET_GENERAL);
// Check as a user with permission to edit the name.
@@ -489,8 +462,6 @@ final class model_test extends \advanced_testcase {
public function test_get_name_and_rename(): void {
global $PAGE;
- $this->resetAfterTest();
-
$output = new \core_renderer($PAGE, RENDERER_TARGET_GENERAL);
// By default, the model exported for template uses its target's name in the name inplace editable element.
@@ -518,8 +489,6 @@ final class model_test extends \advanced_testcase {
* Tests model::get_potential_timesplittings()
*/
public function test_potential_timesplittings(): void {
- $this->resetAfterTest();
-
$this->assertArrayNotHasKey('\core\analytics\time_splitting\no_splitting', $this->model->get_potential_timesplittings());
$this->assertArrayHasKey('\core\analytics\time_splitting\single_range', $this->model->get_potential_timesplittings());
$this->assertArrayHasKey('\core\analytics\time_splitting\quarters', $this->model->get_potential_timesplittings());
@@ -531,8 +500,6 @@ final class model_test extends \advanced_testcase {
* @return null
*/
public function test_get_samples(): void {
- $this->resetAfterTest();
-
if (!PHPUNIT_LONGTEST) {
$this->markTestSkipped('PHPUNIT_LONGTEST is not defined');
}
diff --git a/public/analytics/tests/stats_test.php b/public/analytics/tests/stats_test.php
index a28ec7fe5f0..9fb99d7b444 100644
--- a/public/analytics/tests/stats_test.php
+++ b/public/analytics/tests/stats_test.php
@@ -39,7 +39,7 @@ final class stats_test extends \advanced_testcase {
*/
public function setUp(): void {
parent::setUp();
-
+ $this->resetAfterTest();
$this->setAdminUser();
}
@@ -47,9 +47,6 @@ final class stats_test extends \advanced_testcase {
* Test the {@link \core_analytics\stats::enabled_models()} implementation.
*/
public function test_enabled_models(): void {
-
- $this->resetAfterTest(true);
-
// By default, sites have {@link \core_course\analytics\target\no_teaching} and
// {@link \core_user\analytics\target\upcoming_activities_due} enabled.
$this->assertEquals(4, \core_analytics\stats::enabled_models());
@@ -77,8 +74,6 @@ final class stats_test extends \advanced_testcase {
$this->markTestSkipped('mlbackend_python is not configured.');
}
- $this->resetAfterTest(true);
-
$model = \core_analytics\model::create(
\core_analytics\manager::get_target('test_target_shortname'),
[
@@ -127,8 +122,6 @@ final class stats_test extends \advanced_testcase {
$this->markTestSkipped('mlbackend_python is not configured.');
}
- $this->resetAfterTest(true);
-
$model = \core_analytics\model::create(
\core_analytics\manager::get_target('test_target_shortname'),
[
diff --git a/public/auth/db/db/upgrade.php b/public/auth/db/db/upgrade.php
index 2c721834572..0c478c4fa56 100644
--- a/public/auth/db/db/upgrade.php
+++ b/public/auth/db/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool result
*/
function xmldb_auth_db_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/auth/email/db/upgrade.php b/public/auth/email/db/upgrade.php
index 5a02dbb7678..02e4ae23342 100644
--- a/public/auth/email/db/upgrade.php
+++ b/public/auth/email/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool result
*/
function xmldb_auth_email_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/auth/ldap/db/upgrade.php b/public/auth/ldap/db/upgrade.php
index 389928bcebb..463d4d7b586 100644
--- a/public/auth/ldap/db/upgrade.php
+++ b/public/auth/ldap/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool result
*/
function xmldb_auth_ldap_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/auth/lti/db/upgrade.php b/public/auth/lti/db/upgrade.php
index 43f1c0de93c..269fcd7aa3e 100644
--- a/public/auth/lti/db/upgrade.php
+++ b/public/auth/lti/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool result.
*/
function xmldb_auth_lti_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/auth/manual/db/upgrade.php b/public/auth/manual/db/upgrade.php
index f5f56e53519..d3625c1e72c 100644
--- a/public/auth/manual/db/upgrade.php
+++ b/public/auth/manual/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool result
*/
function xmldb_auth_manual_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/auth/none/db/upgrade.php b/public/auth/none/db/upgrade.php
index bee69aa11d7..841599e26fe 100644
--- a/public/auth/none/db/upgrade.php
+++ b/public/auth/none/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool result
*/
function xmldb_auth_none_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/auth/oauth2/db/upgrade.php b/public/auth/oauth2/db/upgrade.php
index e20c864a6f9..00c0053053f 100644
--- a/public/auth/oauth2/db/upgrade.php
+++ b/public/auth/oauth2/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool result
*/
function xmldb_auth_oauth2_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/auth/shibboleth/db/upgrade.php b/public/auth/shibboleth/db/upgrade.php
index 99b332cd35f..719f26e2e02 100644
--- a/public/auth/shibboleth/db/upgrade.php
+++ b/public/auth/shibboleth/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool result
*/
function xmldb_auth_shibboleth_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/badges/db/upgrade.php b/public/blocks/badges/db/upgrade.php
index 1fbdc897e0a..2c64f1f4794 100644
--- a/public/blocks/badges/db/upgrade.php
+++ b/public/blocks/badges/db/upgrade.php
@@ -43,12 +43,6 @@
* @param object $block
*/
function xmldb_block_badges_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/calendar_month/db/upgrade.php b/public/blocks/calendar_month/db/upgrade.php
index 4f9aa43097c..72be046c1a6 100644
--- a/public/blocks/calendar_month/db/upgrade.php
+++ b/public/blocks/calendar_month/db/upgrade.php
@@ -43,12 +43,6 @@
* @param object $block
*/
function xmldb_block_calendar_month_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/calendar_upcoming/db/upgrade.php b/public/blocks/calendar_upcoming/db/upgrade.php
index 3c640bec21f..e8ea3261a86 100644
--- a/public/blocks/calendar_upcoming/db/upgrade.php
+++ b/public/blocks/calendar_upcoming/db/upgrade.php
@@ -43,12 +43,6 @@
* @param object $block
*/
function xmldb_block_calendar_upcoming_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/completionstatus/db/upgrade.php b/public/blocks/completionstatus/db/upgrade.php
index aea2e0e2e70..adecec02003 100644
--- a/public/blocks/completionstatus/db/upgrade.php
+++ b/public/blocks/completionstatus/db/upgrade.php
@@ -44,12 +44,6 @@
* @param object $block
*/
function xmldb_block_completionstatus_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/course_summary/db/upgrade.php b/public/blocks/course_summary/db/upgrade.php
index 2578d5dd39a..92f11349446 100644
--- a/public/blocks/course_summary/db/upgrade.php
+++ b/public/blocks/course_summary/db/upgrade.php
@@ -44,12 +44,6 @@
* @param object $block
*/
function xmldb_block_course_summary_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/feedback/db/upgrade.php b/public/blocks/feedback/db/upgrade.php
index 9d5f3a70aac..1f82e3dcf9e 100644
--- a/public/blocks/feedback/db/upgrade.php
+++ b/public/blocks/feedback/db/upgrade.php
@@ -43,12 +43,6 @@
* @param object $block
*/
function xmldb_block_feedback_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/html/db/upgrade.php b/public/blocks/html/db/upgrade.php
index e22c811cd26..f120991fed6 100644
--- a/public/blocks/html/db/upgrade.php
+++ b/public/blocks/html/db/upgrade.php
@@ -29,12 +29,6 @@
* @param int $oldversion
*/
function xmldb_block_html_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/myoverview/db/upgrade.php b/public/blocks/myoverview/db/upgrade.php
index 6780e4bf445..8029fc5c0a1 100644
--- a/public/blocks/myoverview/db/upgrade.php
+++ b/public/blocks/myoverview/db/upgrade.php
@@ -29,12 +29,6 @@
* @param int $oldversion
*/
function xmldb_block_myoverview_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/navigation/db/upgrade.php b/public/blocks/navigation/db/upgrade.php
index 7fc4d6064b3..97e79fabc3b 100644
--- a/public/blocks/navigation/db/upgrade.php
+++ b/public/blocks/navigation/db/upgrade.php
@@ -51,12 +51,6 @@
* @param object $block
*/
function xmldb_block_navigation_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/recent_activity/db/upgrade.php b/public/blocks/recent_activity/db/upgrade.php
index ca43768afe6..92992b489dc 100644
--- a/public/blocks/recent_activity/db/upgrade.php
+++ b/public/blocks/recent_activity/db/upgrade.php
@@ -43,12 +43,6 @@
* @param object $block
*/
function xmldb_block_recent_activity_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/recentlyaccesseditems/db/upgrade.php b/public/blocks/recentlyaccesseditems/db/upgrade.php
index 3f2e573cf2a..6136bd465d5 100644
--- a/public/blocks/recentlyaccesseditems/db/upgrade.php
+++ b/public/blocks/recentlyaccesseditems/db/upgrade.php
@@ -43,12 +43,6 @@
* @return bool
*/
function xmldb_block_recentlyaccesseditems_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/rss_client/db/upgrade.php b/public/blocks/rss_client/db/upgrade.php
index ff972be953f..11e430a7073 100644
--- a/public/blocks/rss_client/db/upgrade.php
+++ b/public/blocks/rss_client/db/upgrade.php
@@ -29,12 +29,6 @@
* @return boolean
*/
function xmldb_block_rss_client_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/selfcompletion/db/upgrade.php b/public/blocks/selfcompletion/db/upgrade.php
index a67b5fb3126..9f78b25acb9 100644
--- a/public/blocks/selfcompletion/db/upgrade.php
+++ b/public/blocks/selfcompletion/db/upgrade.php
@@ -44,12 +44,6 @@
* @param object $block
*/
function xmldb_block_selfcompletion_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/settings/db/upgrade.php b/public/blocks/settings/db/upgrade.php
index 9629ba4e0cf..18305789a79 100644
--- a/public/blocks/settings/db/upgrade.php
+++ b/public/blocks/settings/db/upgrade.php
@@ -51,12 +51,6 @@
* @param object $block
*/
function xmldb_block_settings_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/tag_youtube/db/upgrade.php b/public/blocks/tag_youtube/db/upgrade.php
index addcf93ca3f..2d2cb5bb2cf 100644
--- a/public/blocks/tag_youtube/db/upgrade.php
+++ b/public/blocks/tag_youtube/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion
*/
function xmldb_block_tag_youtube_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/blocks/timeline/db/upgrade.php b/public/blocks/timeline/db/upgrade.php
index 60e8f030c70..e7f810dd73c 100644
--- a/public/blocks/timeline/db/upgrade.php
+++ b/public/blocks/timeline/db/upgrade.php
@@ -43,12 +43,6 @@
* @param object $block
*/
function xmldb_block_timeline_upgrade($oldversion, $block) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/communication/provider/matrix/db/upgrade.php b/public/communication/provider/matrix/db/upgrade.php
index 6f281b181ff..6bcf384d276 100644
--- a/public/communication/provider/matrix/db/upgrade.php
+++ b/public/communication/provider/matrix/db/upgrade.php
@@ -28,32 +28,6 @@
* @return bool
*/
function xmldb_communication_matrix_upgrade($oldversion) {
- global $DB;
-
- $dbman = $DB->get_manager();
- if ($oldversion < 2023060101) {
- $table = new xmldb_table('matrix_rooms');
- $field = new xmldb_field('topic', XMLDB_TYPE_CHAR, '255', null, false, false, null, 'roomid');
-
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Plugin savepoint reached.
- upgrade_plugin_savepoint(true, 2023060101, 'communication', 'matrix');
- }
-
- if ($oldversion < 2023071900) {
- $table = new xmldb_table('matrix_rooms');
- $dbman->rename_table($table, 'matrix_room');
-
- // Plugin savepoint reached.
- upgrade_plugin_savepoint(true, 2023071900, 'communication', 'matrix');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/course/format/topics/db/upgrade.php b/public/course/format/topics/db/upgrade.php
index 777e6a0bbbc..3a549e70435 100644
--- a/public/course/format/topics/db/upgrade.php
+++ b/public/course/format/topics/db/upgrade.php
@@ -29,32 +29,6 @@
* @return bool result
*/
function xmldb_format_topics_upgrade($oldversion) {
- global $DB;
-
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023100901) {
- // During the migration to version 4.4, ensure that sections with null names are renamed to their corresponding
- // previous 'Topic X' for continuity.
- $newsectionname = $DB->sql_concat("'Topic '", 'section');
- $sql = << 0 AND (name IS NULL OR name = '')
- AND course IN (SELECT id FROM {course} WHERE format = 'topics')
- EOF;
- $DB->execute(
- sql: $sql,
- );
-
- // Main savepoint reached.
- upgrade_plugin_savepoint(true, 2023100901, 'format', 'topics');
- }
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/course/format/weeks/db/upgrade.php b/public/course/format/weeks/db/upgrade.php
index 867992a45f2..980feec1c69 100644
--- a/public/course/format/weeks/db/upgrade.php
+++ b/public/course/format/weeks/db/upgrade.php
@@ -31,12 +31,6 @@
function xmldb_format_weeks_upgrade($oldversion) {
global $CFG, $DB;
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/enrol/database/db/upgrade.php b/public/enrol/database/db/upgrade.php
index e6af6646b6b..fd746c66c05 100644
--- a/public/enrol/database/db/upgrade.php
+++ b/public/enrol/database/db/upgrade.php
@@ -24,11 +24,6 @@
function xmldb_enrol_database_upgrade($oldversion) {
global $DB;
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/enrol/flatfile/db/upgrade.php b/public/enrol/flatfile/db/upgrade.php
index c8243fb7a39..cd6a4af0818 100644
--- a/public/enrol/flatfile/db/upgrade.php
+++ b/public/enrol/flatfile/db/upgrade.php
@@ -23,12 +23,6 @@
*/
function xmldb_enrol_flatfile_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/enrol/guest/db/upgrade.php b/public/enrol/guest/db/upgrade.php
index 3b99012ba92..d202bbc6bde 100644
--- a/public/enrol/guest/db/upgrade.php
+++ b/public/enrol/guest/db/upgrade.php
@@ -23,12 +23,6 @@
*/
function xmldb_enrol_guest_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/enrol/imsenterprise/db/upgrade.php b/public/enrol/imsenterprise/db/upgrade.php
index 4f4912ca31e..0d3e354e522 100644
--- a/public/enrol/imsenterprise/db/upgrade.php
+++ b/public/enrol/imsenterprise/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool true
*/
function xmldb_enrol_imsenterprise_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/enrol/lti/db/upgrade.php b/public/enrol/lti/db/upgrade.php
index 624df46af96..143929a6c2f 100644
--- a/public/enrol/lti/db/upgrade.php
+++ b/public/enrol/lti/db/upgrade.php
@@ -35,12 +35,6 @@
* @return boolean
*/
function xmldb_enrol_lti_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/enrol/manual/db/upgrade.php b/public/enrol/manual/db/upgrade.php
index cc91ced7f78..ea72fc213e9 100644
--- a/public/enrol/manual/db/upgrade.php
+++ b/public/enrol/manual/db/upgrade.php
@@ -23,12 +23,6 @@
*/
function xmldb_enrol_manual_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/enrol/paypal/db/upgrade.php b/public/enrol/paypal/db/upgrade.php
index 20a812e91e7..08563cd4021 100644
--- a/public/enrol/paypal/db/upgrade.php
+++ b/public/enrol/paypal/db/upgrade.php
@@ -41,12 +41,6 @@
// before any action that may take longer time to finish.
function xmldb_enrol_paypal_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/enrol/self/db/upgrade.php b/public/enrol/self/db/upgrade.php
index 8c2f004219b..b72c6885ad3 100644
--- a/public/enrol/self/db/upgrade.php
+++ b/public/enrol/self/db/upgrade.php
@@ -23,12 +23,6 @@
*/
function xmldb_enrol_self_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/filter/displayh5p/db/upgrade.php b/public/filter/displayh5p/db/upgrade.php
index 6cef64b916e..2a65d9241cb 100644
--- a/public/filter/displayh5p/db/upgrade.php
+++ b/public/filter/displayh5p/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool result
*/
function xmldb_filter_displayh5p_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/filter/mediaplugin/db/upgrade.php b/public/filter/mediaplugin/db/upgrade.php
index e1c4a54b666..6d311547db8 100644
--- a/public/filter/mediaplugin/db/upgrade.php
+++ b/public/filter/mediaplugin/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool result
*/
function xmldb_filter_mediaplugin_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/filter/tex/db/upgrade.php b/public/filter/tex/db/upgrade.php
index c875ac8a621..ca4ca8e3a60 100644
--- a/public/filter/tex/db/upgrade.php
+++ b/public/filter/tex/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool result
*/
function xmldb_filter_tex_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/grade/grading/form/guide/db/upgrade.php b/public/grade/grading/form/guide/db/upgrade.php
index e3b8578e8b6..80359766ed1 100644
--- a/public/grade/grading/form/guide/db/upgrade.php
+++ b/public/grade/grading/form/guide/db/upgrade.php
@@ -33,12 +33,6 @@
* @throws upgrade_exception
*/
function xmldb_gradingform_guide_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/grade/grading/form/rubric/db/upgrade.php b/public/grade/grading/form/rubric/db/upgrade.php
index 188f0ffbd7e..98f3a115671 100644
--- a/public/grade/grading/form/rubric/db/upgrade.php
+++ b/public/grade/grading/form/rubric/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool true
*/
function xmldb_gradingform_rubric_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/grade/report/grader/db/upgrade.php b/public/grade/report/grader/db/upgrade.php
index e8d598ec0b2..c4330f521a5 100644
--- a/public/grade/report/grader/db/upgrade.php
+++ b/public/grade/report/grader/db/upgrade.php
@@ -29,54 +29,6 @@
* @return bool result
*/
function xmldb_gradereport_grader_upgrade(int $oldversion): bool {
- global $DB;
-
- if ($oldversion < 2023032100) {
- // Remove grade_report_showquickfeedback, grade_report_enableajax, grade_report_showeyecons,
- // grade_report_showlocks, grade_report_showanalysisicon preferences for every user.
- $DB->delete_records('user_preferences', ['name' => 'grade_report_showquickfeedback']);
- $DB->delete_records('user_preferences', ['name' => 'grade_report_enableajax']);
- $DB->delete_records('user_preferences', ['name' => 'grade_report_showeyecons']);
- $DB->delete_records('user_preferences', ['name' => 'grade_report_showlocks']);
- $DB->delete_records('user_preferences', ['name' => 'grade_report_showanalysisicon']);
-
- // Remove grade_report_showactivityicons, grade_report_showcalculations preferences for every user.
- $DB->delete_records('user_preferences', ['name' => 'grade_report_showactivityicons']);
- $DB->delete_records('user_preferences', ['name' => 'grade_report_showcalculations']);
-
- // The grade_report_showquickfeedback, grade_report_enableajax, grade_report_showeyecons,
- // grade_report_showlocks, grade_report_showanalysisicon settings have been removed.
- unset_config('grade_report_showquickfeedback');
- unset_config('grade_report_enableajax');
- unset_config('grade_report_showeyecons');
- unset_config('grade_report_showlocks');
- unset_config('grade_report_showanalysisicon');
-
- // The grade_report_showactivityicons, grade_report_showcalculations settings have been removed.
- unset_config('grade_report_showactivityicons');
- unset_config('grade_report_showcalculations');
-
- // Main savepoint reached.
- upgrade_plugin_savepoint(true, 2023032100, 'gradereport', 'grader');
- }
-
- if ($oldversion < 2023032700) {
- unset_config('grade_report_studentsperpage');
- upgrade_plugin_savepoint(true, 2023032700, 'gradereport', 'grader');
- }
-
- if ($oldversion < 2023032800) {
- // Remove plugin entry created by previously incorrect 2023032100 savepoint.
- $DB->delete_records('config_plugins', ['plugin' => 'grade_gradereport_grader']);
- upgrade_plugin_savepoint(true, 2023032800, 'gradereport', 'grader');
- }
-
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/grade/report/history/db/upgrade.php b/public/grade/report/history/db/upgrade.php
index 861890a7feb..378c905ba77 100644
--- a/public/grade/report/history/db/upgrade.php
+++ b/public/grade/report/history/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool result
*/
function xmldb_gradereport_history_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/grade/report/overview/db/upgrade.php b/public/grade/report/overview/db/upgrade.php
index ed756a57741..925e53712c5 100644
--- a/public/grade/report/overview/db/upgrade.php
+++ b/public/grade/report/overview/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool result
*/
function xmldb_gradereport_overview_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/grade/report/user/db/upgrade.php b/public/grade/report/user/db/upgrade.php
index ea18705f9ae..4764aced884 100644
--- a/public/grade/report/user/db/upgrade.php
+++ b/public/grade/report/user/db/upgrade.php
@@ -27,12 +27,6 @@
* @return bool result
*/
function xmldb_gradereport_user_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/lib/antivirus/clamav/db/upgrade.php b/public/lib/antivirus/clamav/db/upgrade.php
index 2174f393dfd..717282c944c 100644
--- a/public/lib/antivirus/clamav/db/upgrade.php
+++ b/public/lib/antivirus/clamav/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool
*/
function xmldb_antivirus_clamav_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/lib/db/upgrade.php b/public/lib/db/upgrade.php
index 5798f893e44..8a290af2fa7 100644
--- a/public/lib/db/upgrade.php
+++ b/public/lib/db/upgrade.php
@@ -99,757 +99,6 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2022112802);
}
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023051500.00) {
- // Define communication table.
- $table = new xmldb_table('communication');
-
- // Adding fields to table communication.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE);
- $table->add_field('instanceid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null, 'id');
- $table->add_field('component', XMLDB_TYPE_CHAR, '100', null, XMLDB_NOTNULL, null, null, 'instanceid');
- $table->add_field('instancetype', XMLDB_TYPE_CHAR, '100', null, XMLDB_NOTNULL, null, null, 'component');
- $table->add_field('provider', XMLDB_TYPE_CHAR, '100', null, XMLDB_NOTNULL, null, null, 'instancerype');
- $table->add_field('roomname', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'provider');
- $table->add_field('avatarfilename', XMLDB_TYPE_CHAR, '100', null, null, null, null, 'roomname');
- $table->add_field('active', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, 1, 'avatarfilename');
-
- // Add key.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
-
- // Conditionally launch create table for communication.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Define communication user table.
- $table = new xmldb_table('communication_user');
-
- // Adding fields to table communication.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE);
- $table->add_field('commid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null, 'id');
- $table->add_field('userid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null, 'commid');
- $table->add_field('synced', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, 0, 'userid');
- $table->add_field('deleted', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, 0, 'synced');
-
- // Add keys.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
- $table->add_key('commid', XMLDB_KEY_FOREIGN, ['commid'], 'communication', ['id']);
- $table->add_key('userid', XMLDB_KEY_FOREIGN, ['userid'], 'user', ['id']);
-
- // Conditionally launch create table for communication.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023051500.00);
- }
-
- if ($oldversion < 2023062200.00) {
- // Remove device specific fields for themes from config table.
- unset_config('thememobile');
- unset_config('themelegacy');
- unset_config('themetablet');
-
- upgrade_main_savepoint(true, 2023062200.00);
- }
-
- if ($oldversion < 2023062700.01) {
- // Define field name to be added to external_tokens.
- $table = new xmldb_table('external_tokens');
- $field = new xmldb_field('name', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'lastaccess');
- // Conditionally launch add field name.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
- // Update the old external tokens.
- $sql = 'UPDATE {external_tokens}
- SET name = ' . $DB->sql_concat(
- // We only need the prefix, so leave the third param with an empty string.
- "'" . get_string('tokennameprefix', 'webservice', '') . "'",
- "id"
- );
- $DB->execute($sql);
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023062700.01);
- }
-
- if ($oldversion < 2023062900.01) {
- // Define field avatarsynced to be added to communication.
- $table = new xmldb_table('communication');
- $field = new xmldb_field('avatarsynced', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, 0, 'active');
-
- // Conditionally launch add field avatarsynced.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023062900.01);
- }
-
- if ($oldversion < 2023080100.00) {
- // Upgrade yaml mime type for existing yaml and yml files.
- $filetypes = [
- '%.yaml' => 'application/yaml',
- '%.yml' => 'application/yaml,',
- ];
-
- $select = $DB->sql_like('filename', '?', false);
- foreach ($filetypes as $extension => $mimetype) {
- $DB->set_field_select(
- 'files',
- 'mimetype',
- $mimetype,
- $select,
- [$extension]
- );
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023080100.00);
- }
-
- if ($oldversion < 2023081500.00) {
- upgrade_core_licenses();
- upgrade_main_savepoint(true, 2023081500.00);
- }
-
- if ($oldversion < 2023081800.01) {
- // Remove enabledevicedetection and devicedetectregex from config table.
- unset_config('enabledevicedetection');
- unset_config('devicedetectregex');
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023081800.01);
- }
-
- if ($oldversion < 2023082200.01) {
- // Some MIME icons have been removed and replaced with existing icons. They need to be upgraded for custom MIME types.
- $replacedicons = [
- 'avi' => 'video',
- 'base' => 'database',
- 'bmp' => 'image',
- 'html' => 'markup',
- 'jpeg' => 'image',
- 'mov' => 'video',
- 'mp3' => 'audio',
- 'mpeg' => 'video',
- 'png' => 'image',
- 'quicktime' => 'video',
- 'tiff' => 'image',
- 'wav' => 'audio',
- 'wmv' => 'video',
- ];
-
- $custom = [];
- if (!empty($CFG->customfiletypes)) {
- if (array_key_exists('customfiletypes', $CFG->config_php_settings)) {
- // It's set in config.php, so the MIME icons can't be upgraded automatically.
- echo("\nYou need to manually check customfiletypes in config.php because some MIME icons have been removed!\n");
- } else {
- // It's a JSON string in the config table.
- $custom = json_decode($CFG->customfiletypes);
- }
- }
-
- $changed = false;
- foreach ($custom as $customentry) {
- if (!empty($customentry->icon) && array_key_exists($customentry->icon, $replacedicons)) {
- $customentry->icon = $replacedicons[$customentry->icon];
- $changed = true;
- }
- }
-
- if ($changed) {
- // Save the new customfiletypes.
- set_config('customfiletypes', json_encode($custom));
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023082200.01);
- }
-
- if ($oldversion < 2023082200.02) {
- // Some MIME icons have been removed. They need to be replaced to 'unknown' for custom MIME types.
- $removedicons = array_flip([
- 'clip-353',
- 'edit',
- 'env',
- 'explore',
- 'folder-open',
- 'help',
- 'move',
- 'parent',
- ]);
-
- $custom = [];
- if (!empty($CFG->customfiletypes)) {
- if (array_key_exists('customfiletypes', $CFG->config_php_settings)) {
- // It's set in config.php, so the MIME icons can't be upgraded automatically.
- echo("\nYou need to manually check customfiletypes in config.php because some MIME icons have been removed!\n");
- } else {
- // It's a JSON string in the config table.
- $custom = json_decode($CFG->customfiletypes);
- }
- }
-
- $changed = false;
- foreach ($custom as $customentry) {
- if (!empty($customentry->icon) && array_key_exists($customentry->icon, $removedicons)) {
- // The icon has been removed, so set it to unknown.
- $customentry->icon = 'unknown';
- $changed = true;
- }
- }
-
- if ($changed) {
- // Save the new customfiletypes.
- set_config('customfiletypes', json_encode($custom));
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023082200.02);
- }
-
- if ($oldversion < 2023082200.04) {
- // Remove any non-unique filters/conditions.
- $duplicates = $DB->get_records_sql("
- SELECT MIN(id) AS id, reportid, uniqueidentifier, iscondition
- FROM {reportbuilder_filter}
- GROUP BY reportid, uniqueidentifier, iscondition
- HAVING COUNT(*) > 1");
-
- foreach ($duplicates as $duplicate) {
- $DB->delete_records_select(
- 'reportbuilder_filter',
- 'id <> :id AND reportid = :reportid AND uniqueidentifier = :uniqueidentifier AND iscondition = :iscondition',
- (array) $duplicate
- );
- }
-
- // Define index report-filter (unique) to be added to reportbuilder_filter.
- $table = new xmldb_table('reportbuilder_filter');
- $index = new xmldb_index('report-filter', XMLDB_INDEX_UNIQUE, ['reportid', 'uniqueidentifier', 'iscondition']);
-
- // Conditionally launch add index report-filter.
- if (!$dbman->index_exists($table, $index)) {
- $dbman->add_index($table, $index);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023082200.04);
- }
-
- if ($oldversion < 2023082600.02) {
- // Get all the ids of users who still have md5 hashed passwords.
- if ($DB->sql_regex_supported()) {
- // If the database supports regex, we can add an exact check for md5.
- $condition = 'password ' . $DB->sql_regex() . ' :pattern';
- $params = ['pattern' => "^[a-fA-F0-9]{32}$"];
- } else {
- // Otherwise, we need to use a NOT LIKE condition and rule out bcrypt.
- $condition = $DB->sql_like('password', ':pattern', true, false, true);
- $params = ['pattern' => '$2y$%'];
- }
-
- // Regardless of database regex support we check the hash length which should be enough.
- // But extra regex or like matching makes sure.
- $sql = "SELECT id FROM {user} WHERE " . $DB->sql_length('password') . " = 32 AND $condition";
- $userids = $DB->get_fieldset_sql($sql, $params);
-
- // Update the password for each user with a new SHA-512 hash.
- // Users won't know this password, but they can reset it. This is a security measure,
- // in case the database is compromised or the hash has been leaked elsewhere.
- foreach ($userids as $userid) {
- $password = base64_encode(random_bytes(24)); // Generate a new password for the user.
-
- $user = new \stdClass();
- $user->id = $userid;
- $user->password = hash_internal_user_password($password);
- $DB->update_record('user', $user, true);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023082600.02);
- }
-
- if ($oldversion < 2023082600.03) {
- // The previous default configuration had a typo, check for its presence and correct if necessary.
- $sensiblesettings = get_config('adminpresets', 'sensiblesettings');
- if (strpos($sensiblesettings, 'smtppass@none') !== false) {
- $newsensiblesettings = str_replace('smtppass@none', 'smtppass@@none', $sensiblesettings);
- set_config('sensiblesettings', $newsensiblesettings, 'adminpresets');
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023082600.03);
- }
-
- if ($oldversion < 2023082600.05) {
- unset_config('completiondefault');
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023082600.05);
- }
-
- if ($oldversion < 2023090100.00) {
- // Upgrade MIME type for existing PSD files.
- $DB->set_field_select(
- 'files',
- 'mimetype',
- 'image/vnd.adobe.photoshop',
- $DB->sql_like('filename', '?', false),
- ['%.psd']
- );
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023090100.00);
- }
-
- if ($oldversion < 2023090200.01) {
- // Define table moodlenet_share_progress to be created.
- $table = new xmldb_table('moodlenet_share_progress');
-
- // Adding fields to table moodlenet_share_progress.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('type', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, null);
- $table->add_field('courseid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('cmid', XMLDB_TYPE_INTEGER, '10', null, null, null, null);
- $table->add_field('userid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('timecreated', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('resourceurl', XMLDB_TYPE_CHAR, '255', null, null, null, null);
- $table->add_field('status', XMLDB_TYPE_INTEGER, '2', null, null, null, null);
-
- // Adding keys to table moodlenet_share_progress.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
-
- // Conditionally launch create table for moodlenet_share_progress.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023090200.01);
- }
-
- if ($oldversion < 2023091300.03) {
- // Delete all the searchanywhere prefs in user_preferences table.
- $DB->delete_records('user_preferences', ['name' => 'userselector_searchanywhere']);
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023091300.03);
- }
-
- if ($oldversion < 2023100400.01) {
- // Delete datakey with datavalue -1.
- $DB->delete_records('messageinbound_datakeys', ['datavalue' => '-1']);
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023100400.01);
- }
-
- if ($oldversion < 2023100400.03) {
- // Define field id to be added to communication.
- $table = new xmldb_table('communication');
-
- // Add the field and allow it to be nullable.
- // We need to backfill data before setting it to NOT NULL.
- $field = new xmldb_field(
- name: 'contextid',
- type: XMLDB_TYPE_INTEGER,
- precision: '10',
- notnull: null,
- previous: 'id',
- );
-
- // Conditionally launch add field id.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Fill the existing data.
- $sql = <<get_recordset_sql(
- sql: $sql,
- params: [
- 'contextcourse' => CONTEXT_COURSE,
- 'instancetype' => 'coursecommunication',
- ],
- );
- foreach ($rs as $comm) {
- $DB->set_field(
- table: 'communication',
- newfield: 'contextid',
- newvalue: $comm->contextid,
- conditions: [
- 'id' => $comm->id,
- ],
- );
- }
- $rs->close();
-
- $systemcontext = \core\context\system::instance();
- $DB->set_field_select(
- table: 'communication',
- newfield: 'contextid',
- newvalue: $systemcontext->id,
- select: 'contextid IS NULL',
- );
-
- // Now make it NOTNULL.
- $field = new xmldb_field(
- name: 'contextid',
- type: XMLDB_TYPE_INTEGER,
- precision: '10',
- notnull: XMLDB_NOTNULL,
- );
- $dbman->change_field_notnull($table, $field);
-
- // Add the contextid constraint.
- $key = new xmldb_key('contextid', XMLDB_KEY_FOREIGN, ['contextid'], 'context', ['id']);
- $dbman->add_key($table, $key);
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023100400.03);
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023110900.00) {
- // Reorder the editors to make Tiny the default for all upgrades.
- $editors = [];
- array_push($editors, 'tiny');
- $list = explode(',', $CFG->texteditors);
- foreach ($list as $editor) {
- if ($editor != 'tiny') {
- array_push($editors, $editor);
- }
- }
- set_config('texteditors', implode(',', $editors));
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023110900.00);
- }
-
- if ($oldversion < 2023120100.01) {
- // The $CFG->linkcoursesections setting has been removed because it's not required anymore.
- // From now, sections will be always linked because a new page, section.php, has been created to display a single section.
- unset_config('linkcoursesections');
-
- upgrade_main_savepoint(true, 2023120100.01);
- }
-
- if ($oldversion < 2023121800.02) {
- // Define field attemptsavailable to be added to task_adhoc.
- $table = new xmldb_table('task_adhoc');
- $field = new xmldb_field(
- name: 'attemptsavailable',
- type: XMLDB_TYPE_INTEGER,
- precision: '2',
- unsigned: null,
- notnull: null,
- sequence: null,
- default: null,
- previous: 'pid',
- );
-
- // Conditionally launch add field attemptsavailable.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Set attemptsavailable to 0 for the tasks that have not been run before.
- // Set attemptsavailable to 1 for the tasks that have been run and failed before.
- $DB->execute('
- UPDATE {task_adhoc}
- SET attemptsavailable = CASE
- WHEN faildelay = 0 THEN 1
- WHEN faildelay > 0 THEN 0
- END
- ');
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023121800.02);
- }
-
- if ($oldversion < 2023122100.01) {
-
- // Define field component to be added to course_sections.
- $table = new xmldb_table('course_sections');
- $field = new xmldb_field('component', XMLDB_TYPE_CHAR, '100', null, null, null, null, 'availability');
-
- // Conditionally launch add field component.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Define field itemid to be added to course_sections.
- $field = new xmldb_field('itemid', XMLDB_TYPE_INTEGER, '10', null, null, null, null, 'component');
-
- // Conditionally launch add field itemid.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2023122100.01);
- }
-
- if ($oldversion < 2023122100.02) {
- $sqllike = $DB->sql_like('filtercondition', '?');
- $params[] = '%includesubcategories%';
-
- $sql = "SELECT qsr.* FROM {question_set_references} qsr WHERE $sqllike";
- $results = $DB->get_recordset_sql($sql, $params);
- foreach ($results as $result) {
- $filtercondition = json_decode($result->filtercondition);
- if (isset($filtercondition->filter->category->includesubcategories)) {
- $filtercondition->filter->category->filteroptions =
- ['includesubcategories' => $filtercondition->filter->category->includesubcategories];
- unset($filtercondition->filter->category->includesubcategories);
- $result->filtercondition = json_encode($filtercondition);
- $DB->update_record('question_set_references', $result);
- }
- }
- $results->close();
-
- upgrade_main_savepoint(true, 2023122100.02);
- }
-
- if ($oldversion < 2024010400.01) {
-
- // Define index timecreated (not unique) to be added to notifications.
- $table = new xmldb_table('notifications');
- $createdindex = new xmldb_index('timecreated', XMLDB_INDEX_NOTUNIQUE, ['timecreated']);
-
- // Conditionally launch add index timecreated.
- if (!$dbman->index_exists($table, $createdindex)) {
- $dbman->add_index($table, $createdindex);
- }
-
- // Define index timeread (not unique) to be added to notifications.
- $readindex = new xmldb_index('timeread', XMLDB_INDEX_NOTUNIQUE, ['timeread']);
-
- // Conditionally launch add index timeread.
- if (!$dbman->index_exists($table, $readindex)) {
- $dbman->add_index($table, $readindex);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2024010400.01);
- }
-
- if ($oldversion < 2024012300.00) {
-
- // Define field valuetrust to be added to customfield_data.
- $table = new xmldb_table('customfield_data');
- $field = new xmldb_field('valuetrust', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, '0', 'valueformat');
-
- // Conditionally launch add field valuetrust.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2024012300.00);
- }
-
- if ($oldversion < 2024020200.01) {
- // If h5plib_v124 is no longer present, remove it.
- if (!file_exists($CFG->dirroot . '/h5p/h5plib/v124/version.php')) {
- // Clean config.
- uninstall_plugin('h5plib', 'v124');
- }
-
- // If h5plib_v126 is present, set it as the default one.
- if (file_exists($CFG->dirroot . '/h5p/h5plib/v126/version.php')) {
- set_config('h5plibraryhandler', 'h5plib_v126');
- }
-
- upgrade_main_savepoint(true, 2024020200.01);
- }
-
- if ($oldversion < 2024021500.01) {
- // Change default course formats order for sites never changed the default order.
- if (!get_config('core', 'format_plugins_sortorder')) {
- set_config('format_plugins_sortorder', 'topics,weeks,singleactivity,social');
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2024021500.01);
- }
-
- if ($oldversion < 2024021500.02) {
- // A [name => url] map of new OIDC endpoints to be updated/created.
- $endpointuris = [
- 'authorization_endpoint' => 'https://clever.com/oauth/authorize',
- 'token_endpoint' => 'https://clever.com/oauth/tokens',
- 'userinfo_endpoint' => 'https://api.clever.com/userinfo',
- 'jwks_uri' => 'https://clever.com/oauth/certs',
- ];
-
- // A [internalfield => externalfield] map of new OIDC-based user field mappings to be updated/created.
- $userfieldmappings = [
- 'idnumber' => 'sub',
- 'firstname' => 'given_name',
- 'lastname' => 'family_name',
- 'email' => 'email',
- ];
-
- $admin = get_admin();
- $adminid = $admin ? $admin->id : '0';
-
- $cleverservices = $DB->get_records('oauth2_issuer', ['servicetype' => 'clever']);
- foreach ($cleverservices as $cleverservice) {
- $time = time();
-
- // Insert/update the new endpoints.
- foreach ($endpointuris as $endpointname => $endpointuri) {
- $endpoint = ['issuerid' => $cleverservice->id, 'name' => $endpointname];
- $endpointid = $DB->get_field('oauth2_endpoint', 'id', $endpoint);
-
- if ($endpointid) {
- $endpoint = array_merge($endpoint, [
- 'id' => $endpointid,
- 'url' => $endpointuri,
- 'timemodified' => $time,
- 'usermodified' => $adminid,
- ]);
- $DB->update_record('oauth2_endpoint', $endpoint);
- } else {
- $endpoint = array_merge($endpoint, [
- 'url' => $endpointuri,
- 'timecreated' => $time,
- 'timemodified' => $time,
- 'usermodified' => $adminid,
- ]);
- $DB->insert_record('oauth2_endpoint', $endpoint);
- }
- }
-
- // Insert/update new user field mappings.
- foreach ($userfieldmappings as $internalfieldname => $externalfieldname) {
- $fieldmap = ['issuerid' => $cleverservice->id, 'internalfield' => $internalfieldname];
- $fieldmapid = $DB->get_field('oauth2_user_field_mapping', 'id', $fieldmap);
-
- if ($fieldmapid) {
- $fieldmap = array_merge($fieldmap, [
- 'id' => $fieldmapid,
- 'externalfield' => $externalfieldname,
- 'timemodified' => $time,
- 'usermodified' => $adminid,
- ]);
- $DB->update_record('oauth2_user_field_mapping', $fieldmap);
- } else {
- $fieldmap = array_merge($fieldmap, [
- 'externalfield' => $externalfieldname,
- 'timecreated' => $time,
- 'timemodified' => $time,
- 'usermodified' => $adminid,
- ]);
- $DB->insert_record('oauth2_user_field_mapping', $fieldmap);
- }
- }
-
- // Update the baseurl for the issuer.
- $cleverservice->baseurl = 'https://clever.com';
- $cleverservice->timemodified = $time;
- $cleverservice->usermodified = $adminid;
- $DB->update_record('oauth2_issuer', $cleverservice);
- }
-
- upgrade_main_savepoint(true, 2024021500.02);
- }
-
- if ($oldversion < 2024022300.02) {
- // Removed advanced grade item settings.
- unset_config('grade_item_advanced');
-
- upgrade_main_savepoint(true, 2024022300.02);
- }
-
- if ($oldversion < 2024030500.01) {
-
- // Define field firststartingtime to be added to task_adhoc.
- $table = new xmldb_table('task_adhoc');
- $field = new xmldb_field('firststartingtime', XMLDB_TYPE_INTEGER, '10', null, null, null, null, 'attemptsavailable');
-
- // Conditionally launch add field firststartingtime.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2024030500.01);
- }
-
- }
-
- if ($oldversion < 2024030500.02) {
-
- // Get all "select" custom field shortnames.
- $fieldshortnames = $DB->get_fieldset('customfield_field', 'shortname', ['type' => 'select']);
-
- // Ensure any used in custom reports columns are not using integer type aggregation.
- foreach ($fieldshortnames as $fieldshortname) {
- $DB->execute("
- UPDATE {reportbuilder_column}
- SET aggregation = NULL
- WHERE " . $DB->sql_like('uniqueidentifier', ':uniqueidentifier', false) . "
- AND aggregation IN ('avg', 'max', 'min', 'sum')
- ", [
- 'uniqueidentifier' => '%' . $DB->sql_like_escape(":customfield_{$fieldshortname}"),
- ]);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2024030500.02);
- }
-
- if ($oldversion < 2024032600.01) {
-
- // Changing precision of field attemptsavailable on table task_adhoc to (2).
- $table = new xmldb_table('task_adhoc');
- $field = new xmldb_field('attemptsavailable', XMLDB_TYPE_INTEGER, '2', null, null, null, null, 'pid');
-
- // Launch change of precision for field.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->change_field_precision($table, $field);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2024032600.01);
- }
-
- if ($oldversion < 2024041200.00) {
- // Define field blocking to be dropped from task_adhoc.
- $table = new xmldb_table('task_adhoc');
- $field = new xmldb_field('blocking');
-
- // Conditionally launch drop field blocking.
- if ($dbman->field_exists($table, $field)) {
- $dbman->drop_field($table, $field);
- }
-
- // Define field blocking to be dropped from task_scheduled.
- $table = new xmldb_table('task_scheduled');
- $field = new xmldb_field('blocking');
-
- // Conditionally launch drop field blocking.
- if ($dbman->field_exists($table, $field)) {
- $dbman->drop_field($table, $field);
- }
-
- // Main savepoint reached.
- upgrade_main_savepoint(true, 2024041200.00);
- }
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/lib/phpminimumversionlib.php b/public/lib/phpminimumversionlib.php
index da57c7ef9dd..36448958964 100644
--- a/public/lib/phpminimumversionlib.php
+++ b/public/lib/phpminimumversionlib.php
@@ -48,8 +48,8 @@ function moodle_minimum_php_version_is_met($haltexecution = false) {
// PLEASE NOTE THIS FUNCTION MUST BE COMPATIBLE WITH OLD UNSUPPORTED VERSIONS OF PHP.
// Do not use modern php features or Moodle convenience functions (e.g. localised strings).
- $minimumversion = '8.2.0';
- $moodlerequirementchanged = '5.1';
+ $minimumversion = '8.3.0';
+ $moodlerequirementchanged = '5.2';
if (version_compare(PHP_VERSION, $minimumversion) < 0) {
if ($haltexecution) {
diff --git a/public/lib/tests/session/memcached_test.php b/public/lib/tests/session/memcached_test.php
index 18f41411fae..b46f08404b5 100644
--- a/public/lib/tests/session/memcached_test.php
+++ b/public/lib/tests/session/memcached_test.php
@@ -41,8 +41,8 @@ final class memcached_test extends \advanced_testcase {
/** @var memcached|null $memcachedession An instance of the memcached session or null if not initialized. */
private ?memcached $memcachedession = null;
- /** @var \Memcached $memcached An instance of the Memcached class used for handling session storage. */
- private \Memcached $memcached;
+ /** @var ?\Memcached $memcached An instance of the Memcached class used for handling session storage. */
+ private ?\Memcached $memcached = null;
/** @var mock_handler $mockhandler Dedicated testing handler. */
private mock_handler $mockhandler;
@@ -87,7 +87,10 @@ final class memcached_test extends \advanced_testcase {
#[\Override]
public function tearDown(): void {
- $this->memcached->quit();
+ if ($this->memcached !== null) {
+ $this->memcached->quit();
+ $this->memcached = null;
+ }
parent::tearDown();
}
diff --git a/public/media/player/videojs/db/upgrade.php b/public/media/player/videojs/db/upgrade.php
index aef63c55783..5f6212516af 100644
--- a/public/media/player/videojs/db/upgrade.php
+++ b/public/media/player/videojs/db/upgrade.php
@@ -49,12 +49,6 @@
* @return bool always true
*/
function xmldb_media_videojs_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/message/output/email/db/upgrade.php b/public/message/output/email/db/upgrade.php
index 23780dd9c74..e11d83ec515 100644
--- a/public/message/output/email/db/upgrade.php
+++ b/public/message/output/email/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion The version that we are upgrading from
*/
function xmldb_message_email_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/message/output/popup/db/upgrade.php b/public/message/output/popup/db/upgrade.php
index a9a5351a23e..cef0010a383 100644
--- a/public/message/output/popup/db/upgrade.php
+++ b/public/message/output/popup/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion The version that we are upgrading from
*/
function xmldb_message_popup_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/assign/db/upgrade.php b/public/mod/assign/db/upgrade.php
index 61f5126a2a4..0d835e1d4c5 100644
--- a/public/mod/assign/db/upgrade.php
+++ b/public/mod/assign/db/upgrade.php
@@ -30,36 +30,8 @@
function xmldb_assign_upgrade($oldversion) {
global $DB;
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
$dbman = $DB->get_manager(); // Loads ddl manager and xmldb classes.
- if ($oldversion < 2023103000) {
- // Define field activity to be added to assign.
- $table = new xmldb_table('assign');
- $field = new xmldb_field(
- 'markinganonymous',
- XMLDB_TYPE_INTEGER,
- '2',
- null,
- XMLDB_NOTNULL,
- null,
- '0',
- 'markingallocation'
- );
- // Conditionally launch add field activity.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Assign savepoint reached.
- upgrade_mod_savepoint(true, 2023103000, 'assign');
- }
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/assign/feedback/comments/db/upgrade.php b/public/mod/assign/feedback/comments/db/upgrade.php
index badbd7fb642..02e15ae89ab 100644
--- a/public/mod/assign/feedback/comments/db/upgrade.php
+++ b/public/mod/assign/feedback/comments/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool
*/
function xmldb_assignfeedback_comments_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/assign/feedback/editpdf/db/upgrade.php b/public/mod/assign/feedback/editpdf/db/upgrade.php
index 1cc5554f10d..2da4c2edade 100644
--- a/public/mod/assign/feedback/editpdf/db/upgrade.php
+++ b/public/mod/assign/feedback/editpdf/db/upgrade.php
@@ -28,13 +28,6 @@
* @return bool
*/
function xmldb_assignfeedback_editpdf_upgrade($oldversion) {
-
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/assign/feedback/file/db/upgrade.php b/public/mod/assign/feedback/file/db/upgrade.php
index b5bd28ad118..83cf0af0e97 100644
--- a/public/mod/assign/feedback/file/db/upgrade.php
+++ b/public/mod/assign/feedback/file/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool
*/
function xmldb_assignfeedback_file_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/assign/submission/comments/db/upgrade.php b/public/mod/assign/submission/comments/db/upgrade.php
index 310d4788c1b..1a2ba783910 100644
--- a/public/mod/assign/submission/comments/db/upgrade.php
+++ b/public/mod/assign/submission/comments/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool
*/
function xmldb_assignsubmission_comments_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/assign/submission/file/db/upgrade.php b/public/mod/assign/submission/file/db/upgrade.php
index e115c344050..5c6dbea25c9 100644
--- a/public/mod/assign/submission/file/db/upgrade.php
+++ b/public/mod/assign/submission/file/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool
*/
function xmldb_assignsubmission_file_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/assign/submission/onlinetext/db/upgrade.php b/public/mod/assign/submission/onlinetext/db/upgrade.php
index 3864984d1e8..81bd568b009 100644
--- a/public/mod/assign/submission/onlinetext/db/upgrade.php
+++ b/public/mod/assign/submission/onlinetext/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool
*/
function xmldb_assignsubmission_onlinetext_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/bigbluebuttonbn/db/upgrade.php b/public/mod/bigbluebuttonbn/db/upgrade.php
index 482bb4b3755..03faa9420d5 100644
--- a/public/mod/bigbluebuttonbn/db/upgrade.php
+++ b/public/mod/bigbluebuttonbn/db/upgrade.php
@@ -38,12 +38,6 @@ function xmldb_bigbluebuttonbn_upgrade($oldversion = 0) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/book/db/upgrade.php b/public/mod/book/db/upgrade.php
index 92b41ce88cc..5a7137955f7 100644
--- a/public/mod/book/db/upgrade.php
+++ b/public/mod/book/db/upgrade.php
@@ -31,12 +31,6 @@ function xmldb_book_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/choice/db/upgrade.php b/public/mod/choice/db/upgrade.php
index 6d129917b83..5aefcbc4420 100644
--- a/public/mod/choice/db/upgrade.php
+++ b/public/mod/choice/db/upgrade.php
@@ -43,12 +43,6 @@ function xmldb_choice_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/data/db/upgrade.php b/public/mod/data/db/upgrade.php
index a8e9f25717e..6d8f7dfd246 100644
--- a/public/mod/data/db/upgrade.php
+++ b/public/mod/data/db/upgrade.php
@@ -43,28 +43,6 @@ function xmldb_data_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023061300) {
- // Clean orphan data_records.
- $sql = "SELECT d.id FROM {data} d
- LEFT JOIN {data_fields} f ON d.id = f.dataid
- WHERE f.id IS NULL";
- $emptydatas = $DB->get_records_sql($sql);
- if (!empty($emptydatas)) {
- $dataids = array_keys($emptydatas);
- [$datainsql, $dataparams] = $DB->get_in_or_equal($dataids, SQL_PARAMS_NAMED, 'data');
- $DB->delete_records_select('data_records', "dataid $datainsql", $dataparams);
- }
-
- // Data savepoint reached.
- upgrade_mod_savepoint(true, 2023061300, 'data');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/feedback/db/upgrade.php b/public/mod/feedback/db/upgrade.php
index e5ebfd54a29..d33722ae7ed 100644
--- a/public/mod/feedback/db/upgrade.php
+++ b/public/mod/feedback/db/upgrade.php
@@ -43,12 +43,6 @@ function xmldb_feedback_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/folder/db/upgrade.php b/public/mod/folder/db/upgrade.php
index b201c1a05cb..7ed350c5fc0 100644
--- a/public/mod/folder/db/upgrade.php
+++ b/public/mod/folder/db/upgrade.php
@@ -46,12 +46,6 @@ function xmldb_folder_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/forum/db/upgrade.php b/public/mod/forum/db/upgrade.php
index 33e18af2f7c..86532aa2dce 100644
--- a/public/mod/forum/db/upgrade.php
+++ b/public/mod/forum/db/upgrade.php
@@ -44,12 +44,6 @@ function xmldb_forum_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/glossary/db/upgrade.php b/public/mod/glossary/db/upgrade.php
index 70e5a896db6..7af2b68fdb0 100644
--- a/public/mod/glossary/db/upgrade.php
+++ b/public/mod/glossary/db/upgrade.php
@@ -43,12 +43,6 @@ function xmldb_glossary_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/h5pactivity/db/upgrade.php b/public/mod/h5pactivity/db/upgrade.php
index 4c4bb2977df..e57696590cd 100644
--- a/public/mod/h5pactivity/db/upgrade.php
+++ b/public/mod/h5pactivity/db/upgrade.php
@@ -48,26 +48,6 @@ function xmldb_h5pactivity_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023042401) {
- // Remove any orphaned attempt/result records (pointing to non-existing activities).
- $DB->delete_records_select('h5pactivity_attempts', 'NOT EXISTS (
- SELECT 1 FROM {h5pactivity} h5p WHERE h5p.id = {h5pactivity_attempts}.h5pactivityid
- )');
-
- $DB->delete_records_select('h5pactivity_attempts_results', 'NOT EXISTS (
- SELECT 1 FROM {h5pactivity_attempts} attempt WHERE attempt.id = {h5pactivity_attempts_results}.attemptid
- )');
-
- // H5pactivity savepoint reached.
- upgrade_mod_savepoint(true, 2023042401, 'h5pactivity');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/imscp/db/upgrade.php b/public/mod/imscp/db/upgrade.php
index 7a16dd8a586..aadde996f65 100644
--- a/public/mod/imscp/db/upgrade.php
+++ b/public/mod/imscp/db/upgrade.php
@@ -30,12 +30,6 @@ function xmldb_imscp_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/label/db/upgrade.php b/public/mod/label/db/upgrade.php
index b3276102f56..37d09c52e43 100644
--- a/public/mod/label/db/upgrade.php
+++ b/public/mod/label/db/upgrade.php
@@ -46,12 +46,6 @@ function xmldb_label_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/lesson/db/upgrade.php b/public/mod/lesson/db/upgrade.php
index 9fff5a4dc9c..ac03d14e8f3 100644
--- a/public/mod/lesson/db/upgrade.php
+++ b/public/mod/lesson/db/upgrade.php
@@ -51,12 +51,6 @@ function xmldb_lesson_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/lti/db/upgrade.php b/public/mod/lti/db/upgrade.php
index 6878ecbfd07..b5dec6478ed 100644
--- a/public/mod/lti/db/upgrade.php
+++ b/public/mod/lti/db/upgrade.php
@@ -61,61 +61,6 @@ function xmldb_lti_upgrade($oldversion) {
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023070501) {
- // Define table lti_types_categories to be created.
- $table = new xmldb_table('lti_types_categories');
-
- // Adding fields to table lti_types_categories.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('typeid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('categoryid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
-
- // Adding keys to table lti_types_categories.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
- $table->add_key('typeid', XMLDB_KEY_FOREIGN, ['typeid'], 'lti_types', ['id']);
- $table->add_key('categoryid', XMLDB_KEY_FOREIGN, ['categoryid'], 'course_categories', ['id']);
-
- // Conditionally launch create table for lti_types_categories.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
- // Lti savepoint reached.
- upgrade_mod_savepoint(true, 2023070501, 'lti');
- }
-
- if ($oldversion < 2023081101) {
- // Define table to override coursevisible for a tool on course level.
- $table = new xmldb_table('lti_coursevisible');
-
- // Adding fields to table lti_coursevisible.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE);
- $table->add_field('typeid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null, 'id');
- $table->add_field('courseid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null, 'typeid');
- $table->add_field('coursevisible', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, null, 'courseid');
-
- // Add key.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
-
- // Define index courseid (not unique) to be added to lti_coursevisible.
- $table->add_index('courseid', XMLDB_INDEX_NOTUNIQUE, ['courseid']);
- // Define index typeid (not unique) to be added to lti_coursevisible.
- $table->add_index('typeid', XMLDB_INDEX_NOTUNIQUE, ['typeid']);
-
- // Conditionally launch create table for overriding coursevisible.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Lti savepoint reached.
- upgrade_mod_savepoint(true, 2023081101, 'lti');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/lti/service/gradebookservices/db/upgrade.php b/public/mod/lti/service/gradebookservices/db/upgrade.php
index 2f1f552d589..57d26ea5fba 100644
--- a/public/mod/lti/service/gradebookservices/db/upgrade.php
+++ b/public/mod/lti/service/gradebookservices/db/upgrade.php
@@ -53,11 +53,6 @@
* @return boolean
*/
function xmldb_ltiservice_gradebookservices_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/page/db/upgrade.php b/public/mod/page/db/upgrade.php
index d1767c07446..81ded07fcea 100644
--- a/public/mod/page/db/upgrade.php
+++ b/public/mod/page/db/upgrade.php
@@ -46,12 +46,6 @@ function xmldb_page_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/quiz/accessrule/seb/db/upgrade.php b/public/mod/quiz/accessrule/seb/db/upgrade.php
index ac4b7bb881b..914e4625194 100644
--- a/public/mod/quiz/accessrule/seb/db/upgrade.php
+++ b/public/mod/quiz/accessrule/seb/db/upgrade.php
@@ -37,12 +37,6 @@ function xmldb_quizaccess_seb_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/quiz/db/upgrade.php b/public/mod/quiz/db/upgrade.php
index fbd6d6a80fb..808ff660ee3 100644
--- a/public/mod/quiz/db/upgrade.php
+++ b/public/mod/quiz/db/upgrade.php
@@ -30,91 +30,6 @@ function xmldb_quiz_upgrade($oldversion) {
global $CFG, $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023042401) {
- // Define field reviewmaxmarks to be added to quiz.
- $table = new xmldb_table('quiz');
- $field = new xmldb_field('reviewmaxmarks', XMLDB_TYPE_INTEGER, '6', null, XMLDB_NOTNULL, null, '0', 'reviewcorrectness');
-
- // Conditionally launch add field reviewmaxmarks.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Quiz savepoint reached.
- upgrade_mod_savepoint(true, 2023042401, 'quiz');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023112300) {
-
- // Set the value for all existing rows to match the previous behaviour,
- // but only where users have not already set another value.
- $DB->set_field('quiz', 'reviewmaxmarks', 0x11110, ['reviewmaxmarks' => 0]);
-
- // Quiz savepoint reached.
- upgrade_mod_savepoint(true, 2023112300, 'quiz');
- }
-
- if ($oldversion < 2023112400) {
-
- // Define table quiz_grade_items to be created.
- $table = new xmldb_table('quiz_grade_items');
-
- // Adding fields to table quiz_grade_items.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('quizid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('sortorder', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('name', XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null);
-
- // Adding keys to table quiz_grade_items.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
- $table->add_key('quizid', XMLDB_KEY_FOREIGN, ['quizid'], 'quiz', ['id']);
-
- // Adding indexes to table quiz_grade_items.
- $table->add_index('quizid-sortorder', XMLDB_INDEX_UNIQUE, ['quizid', 'sortorder']);
-
- // Conditionally launch create table for quiz_grade_items.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Quiz savepoint reached.
- upgrade_mod_savepoint(true, 2023112400, 'quiz');
- }
-
- if ($oldversion < 2023112401) {
-
- // Define field quizgradeitemid to be added to quiz_slots.
- $table = new xmldb_table('quiz_slots');
- $field = new xmldb_field('quizgradeitemid', XMLDB_TYPE_INTEGER, '10', null, null, null, null, 'maxmark');
-
- // Conditionally launch add field quizgradeitemid.
- if (!$dbman->field_exists($table, $field)) {
- $dbman->add_field($table, $field);
- }
-
- // Quiz savepoint reached.
- upgrade_mod_savepoint(true, 2023112401, 'quiz');
- }
-
- if ($oldversion < 2023112402) {
-
- // Define key quizgradeitemid (foreign) to be added to quiz_slots.
- $table = new xmldb_table('quiz_slots');
- $key = new xmldb_key('quizgradeitemid', XMLDB_KEY_FOREIGN, ['quizgradeitemid'], 'quiz_grade_items', ['id']);
-
- // Launch add key quizgradeitemid.
- $dbman->add_key($table, $key);
-
- // Quiz savepoint reached.
- upgrade_mod_savepoint(true, 2023112402, 'quiz');
- }
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/quiz/report/overview/db/upgrade.php b/public/mod/quiz/report/overview/db/upgrade.php
index e51078aa0db..b0e995f61a8 100644
--- a/public/mod/quiz/report/overview/db/upgrade.php
+++ b/public/mod/quiz/report/overview/db/upgrade.php
@@ -27,12 +27,6 @@
* @param number $oldversion
*/
function xmldb_quiz_overview_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/quiz/report/statistics/db/upgrade.php b/public/mod/quiz/report/statistics/db/upgrade.php
index eb17779fe8f..a6462c6011f 100644
--- a/public/mod/quiz/report/statistics/db/upgrade.php
+++ b/public/mod/quiz/report/statistics/db/upgrade.php
@@ -28,11 +28,6 @@
function xmldb_quiz_statistics_upgrade($oldversion) {
global $CFG, $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/resource/db/upgrade.php b/public/mod/resource/db/upgrade.php
index da36e96bfc1..ff887f19bab 100644
--- a/public/mod/resource/db/upgrade.php
+++ b/public/mod/resource/db/upgrade.php
@@ -46,12 +46,6 @@ function xmldb_resource_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/scorm/db/upgrade.php b/public/mod/scorm/db/upgrade.php
index c5b1615c994..c659521ffac 100644
--- a/public/mod/scorm/db/upgrade.php
+++ b/public/mod/scorm/db/upgrade.php
@@ -32,161 +32,6 @@ function xmldb_scorm_upgrade($oldversion) {
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // New table structure for scorm_scoes_track.
- if ($oldversion < 2023042401) {
- // Define table scorm_attempt to be created.
- $table = new xmldb_table('scorm_attempt');
-
- // Adding fields to table scorm_attempt.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('userid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('scormid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('attempt', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '1');
-
- // Adding keys to table scorm_attempt.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
- $table->add_key('user', XMLDB_KEY_FOREIGN, ['userid'], 'user', ['id']);
- $table->add_key('scorm', XMLDB_KEY_FOREIGN, ['scormid'], 'scorm', ['id']);
-
- // Conditionally launch create table for scorm_attempt.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Define table scorm_element to be created.
- $table = new xmldb_table('scorm_element');
-
- // Adding fields to table scorm_element.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('element', XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null);
-
- // Adding keys to table scorm_element.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
-
- // Adding indexes to table scorm_element.
- $table->add_index('element', XMLDB_INDEX_UNIQUE, ['element']);
-
- // Conditionally launch create table for scorm_element.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- // Define table scorm_scoes_value to be created.
- $table = new xmldb_table('scorm_scoes_value');
-
- // Adding fields to table scorm_scoes_value.
- $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
- $table->add_field('scoid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('attemptid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('elementid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
- $table->add_field('value', XMLDB_TYPE_TEXT, null, null, XMLDB_NOTNULL, null, null);
- $table->add_field('timemodified', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0');
-
- // Adding keys to table scorm_scoes_value.
- $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);
- $table->add_key('scoe', XMLDB_KEY_FOREIGN, ['scoid'], 'scorm_scoes', ['id']);
- $table->add_key('attempt', XMLDB_KEY_FOREIGN, ['attemptid'], 'scorm_attempt', ['id']);
- $table->add_key('element', XMLDB_KEY_FOREIGN, ['elementid'], 'scorm_element', ['id']);
-
- // Conditionally launch create table for scorm_scoes_value.
- if (!$dbman->table_exists($table)) {
- $dbman->create_table($table);
- }
-
- upgrade_mod_savepoint(true, 2023042401, 'scorm');
- }
-
- if ($oldversion < 2023042402) {
- $trans = $DB->start_delegated_transaction();
-
- // First grab all elements and store those.
- $sql = "INSERT INTO {scorm_element} (element)
- SELECT DISTINCT element FROM {scorm_scoes_track}";
- $DB->execute($sql);
-
- // Now store all data in the scorm_attempt table.
- $sql = "INSERT INTO {scorm_attempt} (userid, scormid, attempt)
- SELECT DISTINCT userid, scormid, attempt FROM {scorm_scoes_track}";
- $DB->execute($sql);
-
- $trans->allow_commit();
- // Scorm savepoint reached.
- upgrade_mod_savepoint(true, 2023042402, 'scorm');
- }
- if ($oldversion < 2023042403) {
- // Now store all translated data in the scorm_scoes_value table.
- $total = $DB->count_records('scorm_scoes_track');
- if ($total > 500000) {
- // This site has a large number of user track records, lets warn that this next part may take some time.
- $notification = new \core\output\notification(
- get_string('largetrackupgrade', 'scorm', format_float($total, 0)),
- \core\output\notification::NOTIFY_WARNING
- );
- $notification->set_show_closebutton(false);
- echo $OUTPUT->render($notification);
- }
-
- // We don't need a progress bar - just run the fastest option possible.
- $sql = "INSERT INTO {scorm_scoes_value} (attemptid, scoid, elementid, value, timemodified)
- SELECT a.id as attemptid, t.scoid as scoid, e.id as elementid, t.value as value, t.timemodified
- FROM {scorm_scoes_track} t
- JOIN {scorm_element} e ON e.element = t.element
- JOIN {scorm_attempt} a ON (t.userid = a.userid AND t.scormid = a.scormid AND a.attempt = t.attempt)";
- $DB->execute($sql);
-
- // Drop old table scorm_scoes_track.
- $table = new xmldb_table('scorm_scoes_track');
-
- // Conditionally launch drop table for scorm_scoes_track.
- if ($dbman->table_exists($table)) {
- $dbman->drop_table($table);
- }
-
- // Scorm savepoint reached.
- upgrade_mod_savepoint(true, 2023042403, 'scorm');
- }
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023100901) {
- // MDL-79967 - fix up any possible activity completion states since the upgrade to 2023042403.
- // Get timestamp of when this site updated to version 2023042403.
- $upgraded = $DB->get_field_sql("SELECT min(timemodified)
- FROM {upgrade_log}
- WHERE plugin = 'mod_scorm' AND version = '2023042403'");
- if (empty($upgraded)) {
- // The code causing this regression landed upstream 28 Jul 2023, if a site has done a fresh install since then,
- // the upgrade step won't exist - set it to 20th July so we don't end up dealing with too many attempts.
- $upgraded = 1689811200; // 20 July 2023 12AM.
- }
- // Don't bother triggering this next step if the upgrade completed within the last hour.
- if (time() - HOURSECS > $upgraded) {
- // Get all attempts that have occurred since the upgrade.
- $sql = "SELECT DISTINCT s.id, sa.userid
- FROM {scorm} s
- JOIN {scorm_attempt} sa ON sa.scormid = s.id
- JOIN {scorm_scoes_value} sv on sv.attemptid = sa.id
- WHERE sv.timemodified > ?";
- $scorms = $DB->get_recordset_sql($sql, [$upgraded]);
- foreach ($scorms as $scorm) {
- // Run an ad-hoc task to update the grades.
- $task = new \mod_scorm\task\update_grades();
- $task->set_custom_data([
- 'scormid' => $scorm->id,
- 'userid' => $scorm->userid,
- ]);
- \core\task\manager::queue_adhoc_task($task, true);
- }
- $scorms->close();
- }
-
- // Scorm savepoint reached.
- upgrade_mod_savepoint(true, 2023100901, 'scorm');
- }
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/url/db/upgrade.php b/public/mod/url/db/upgrade.php
index 306709cfe49..e32c6e777a8 100644
--- a/public/mod/url/db/upgrade.php
+++ b/public/mod/url/db/upgrade.php
@@ -46,22 +46,6 @@ function xmldb_url_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
- if ($oldversion < 2023100901) {
- // Enable variables to be set for URL resource.
- if (!get_config('url', 'allowvariables')) {
- set_config('allowvariables', true, 'url');
- }
-
- // URL savepoint reached.
- upgrade_mod_savepoint(true, 2023100901, 'url');
- }
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/wiki/db/upgrade.php b/public/mod/wiki/db/upgrade.php
index 2bf043e24e1..5e3f7411094 100644
--- a/public/mod/wiki/db/upgrade.php
+++ b/public/mod/wiki/db/upgrade.php
@@ -39,12 +39,6 @@ function xmldb_wiki_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/workshop/db/upgrade.php b/public/mod/workshop/db/upgrade.php
index a72a2d62162..30f43475997 100644
--- a/public/mod/workshop/db/upgrade.php
+++ b/public/mod/workshop/db/upgrade.php
@@ -36,12 +36,6 @@ function xmldb_workshop_upgrade($oldversion) {
global $DB;
$dbman = $DB->get_manager();
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/workshop/form/accumulative/db/upgrade.php b/public/mod/workshop/form/accumulative/db/upgrade.php
index 66235d6d065..9cfc5850207 100644
--- a/public/mod/workshop/form/accumulative/db/upgrade.php
+++ b/public/mod/workshop/form/accumulative/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool true
*/
function xmldb_workshopform_accumulative_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/workshop/form/comments/db/upgrade.php b/public/mod/workshop/form/comments/db/upgrade.php
index 83cb8b17efe..a5d664d9d98 100644
--- a/public/mod/workshop/form/comments/db/upgrade.php
+++ b/public/mod/workshop/form/comments/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool true
*/
function xmldb_workshopform_comments_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/workshop/form/numerrors/db/upgrade.php b/public/mod/workshop/form/numerrors/db/upgrade.php
index f75ecc9530c..f3523e85221 100644
--- a/public/mod/workshop/form/numerrors/db/upgrade.php
+++ b/public/mod/workshop/form/numerrors/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool true
*/
function xmldb_workshopform_numerrors_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/mod/workshop/form/rubric/db/upgrade.php b/public/mod/workshop/form/rubric/db/upgrade.php
index b99b232723b..55f0f99634c 100644
--- a/public/mod/workshop/form/rubric/db/upgrade.php
+++ b/public/mod/workshop/form/rubric/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool true
*/
function xmldb_workshopform_rubric_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/payment/gateway/paypal/db/upgrade.php b/public/payment/gateway/paypal/db/upgrade.php
index b4a7bbdd5d4..681fc7c3217 100644
--- a/public/payment/gateway/paypal/db/upgrade.php
+++ b/public/payment/gateway/paypal/db/upgrade.php
@@ -29,28 +29,6 @@
* @return bool always true
*/
function xmldb_paygw_paypal_upgrade(int $oldversion): bool {
- global $DB;
-
- $dbman = $DB->get_manager();
-
- if ($oldversion < 2021052501) {
- // Define key paymentid (foreign-unique) to be added to paygw_paypal.
- $table = new xmldb_table('paygw_paypal');
- $key = new xmldb_key('paymentid', XMLDB_KEY_FOREIGN_UNIQUE, ['paymentid'], 'payments', ['id']);
-
- // Launch add key paymentid.
- $dbman->add_key($table, $key);
-
- // Paypal savepoint reached.
- upgrade_plugin_savepoint(true, 2021052501, 'paygw', 'paypal');
- }
-
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/portfolio/googledocs/db/upgrade.php b/public/portfolio/googledocs/db/upgrade.php
index f2a1673860c..e7e24c119eb 100644
--- a/public/portfolio/googledocs/db/upgrade.php
+++ b/public/portfolio/googledocs/db/upgrade.php
@@ -19,12 +19,6 @@
* @return bool result
*/
function xmldb_portfolio_googledocs_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/behaviour/manualgraded/db/upgrade.php b/public/question/behaviour/manualgraded/db/upgrade.php
index 2a8ce63c165..0b3bb86d212 100644
--- a/public/question/behaviour/manualgraded/db/upgrade.php
+++ b/public/question/behaviour/manualgraded/db/upgrade.php
@@ -26,12 +26,6 @@
* Manual graded question behaviour upgrade code.
*/
function xmldb_qbehaviour_manualgraded_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/calculated/db/upgrade.php b/public/question/type/calculated/db/upgrade.php
index 468f9ac630e..5a3739d4788 100644
--- a/public/question/type/calculated/db/upgrade.php
+++ b/public/question/type/calculated/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_calculated_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/calculatedmulti/db/upgrade.php b/public/question/type/calculatedmulti/db/upgrade.php
index fa0b2d6a708..3f2ea78400f 100644
--- a/public/question/type/calculatedmulti/db/upgrade.php
+++ b/public/question/type/calculatedmulti/db/upgrade.php
@@ -28,29 +28,6 @@
* @return bool
*/
function xmldb_qtype_calculatedmulti_upgrade($oldversion) {
- global $DB;
-
- if ($oldversion < 2024011700) {
- // In earlier versions, the answer options (choices) for a calculated multiple choice
- // question could not use HTML and all text was rendered verbatim. However, the texts
- // were stored in the DB with answerformat == FORMAT_HTML. This value was then overridden
- // during initialisation of the question.
- // From this version on, answer options may use HTML, so the answerformat does now have a
- // meaning. For backwards compatibility, all existing answer options for this question
- // type must have their answerformat set to FORMAT_PLAIN.
- $DB->execute("UPDATE {question_answers}
- SET answerformat = '" . FORMAT_PLAIN . "'
- WHERE question IN (
- SELECT id
- FROM {question}
- WHERE qtype = 'calculatedmulti'
- )"
- );
-
- // Calculatedmulti savepoint reached.
- upgrade_plugin_savepoint(true, 2024011700, 'qtype', 'calculatedmulti');
- }
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/ddmarker/db/upgrade.php b/public/question/type/ddmarker/db/upgrade.php
index 98daa3f6c99..920b67e2199 100644
--- a/public/question/type/ddmarker/db/upgrade.php
+++ b/public/question/type/ddmarker/db/upgrade.php
@@ -28,12 +28,6 @@
* @return bool
*/
function xmldb_qtype_ddmarker_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/essay/db/upgrade.php b/public/question/type/essay/db/upgrade.php
index 6ed3478a48d..9449052aee4 100644
--- a/public/question/type/essay/db/upgrade.php
+++ b/public/question/type/essay/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_essay_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/match/db/upgrade.php b/public/question/type/match/db/upgrade.php
index 890134ae26e..70f40ae3b8c 100644
--- a/public/question/type/match/db/upgrade.php
+++ b/public/question/type/match/db/upgrade.php
@@ -27,12 +27,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_match_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/multianswer/db/upgrade.php b/public/question/type/multianswer/db/upgrade.php
index 9b0d0ad6d53..ee88edd105a 100644
--- a/public/question/type/multianswer/db/upgrade.php
+++ b/public/question/type/multianswer/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_multianswer_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/multichoice/db/upgrade.php b/public/question/type/multichoice/db/upgrade.php
index 4a3660f36ec..7127c3a173d 100644
--- a/public/question/type/multichoice/db/upgrade.php
+++ b/public/question/type/multichoice/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_multichoice_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/numerical/db/upgrade.php b/public/question/type/numerical/db/upgrade.php
index 9c269765a89..35e579fc9f7 100644
--- a/public/question/type/numerical/db/upgrade.php
+++ b/public/question/type/numerical/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_numerical_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/ordering/db/upgrade.php b/public/question/type/ordering/db/upgrade.php
index b2a9be14ab3..0315790e581 100644
--- a/public/question/type/ordering/db/upgrade.php
+++ b/public/question/type/ordering/db/upgrade.php
@@ -28,345 +28,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_ordering_upgrade($oldversion) {
- global $CFG, $DB;
-
- $dbman = $DB->get_manager();
-
- if ($oldversion < 2013062800) {
- $select = 'qn.*, qo.id AS questionorderingid';
- $from = '{question} qn LEFT JOIN {question_ordering} qo ON qn.id = qo.question';
- $where = 'qn.qtype = ? AND qo.id IS NULL';
- $params = ['ordering'];
- if ($questions = $DB->get_records_sql("SELECT $select FROM $from WHERE $where", $params)) {
- foreach ($questions as $question) {
- if ($answers = $DB->get_records('question_answers', ['question' => $question->id])) {
- // Add "options" for this ordering question.
- $questionordering = (object) [
- 'question' => $question->id,
- 'logical' => 1,
- 'studentsee' => min(6, count($answers)),
- 'correctfeedback' => '',
- 'partiallycorrectfeedback' => '',
- 'incorrectfeedback' => '',
- ];
- $questionordering->id = $DB->insert_record('question_ordering', $questionordering);
- } else {
- // This is a faulty ordering question - remove it.
- $DB->delete_records('question', ['id' => $question->id]);
- if ($dbman->table_exists('quiz_question_instances')) {
- $DB->delete_records('quiz_question_instances', ['question' => $question->id]);
- }
- if ($dbman->table_exists('reader_question_instances')) {
- $DB->delete_records('reader_question_instances', ['question' => $question->id]);
- }
- }
- }
- }
- upgrade_plugin_savepoint(true, 2013062800, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2015011915) {
-
- // Rename "ordering" table for Moodle >= 2.5.
- $oldname = 'question_ordering';
- $newname = 'qtype_ordering_options';
-
- if ($dbman->table_exists($oldname)) {
- $oldtable = new xmldb_table($oldname);
- if ($dbman->table_exists($newname)) {
- $dbman->drop_table($oldtable);
- } else {
- $dbman->rename_table($oldtable, $newname);
- }
- }
-
- // Remove index on question(id) field (because we want to modify the field).
- $table = new xmldb_table('qtype_ordering_options');
- $fields = ['question', 'questionid'];
- foreach ($fields as $field) {
- if ($dbman->field_exists($table, $field)) {
- $index = new xmldb_index('qtypordeopti_que_uix', XMLDB_INDEX_UNIQUE, [$field]);
- if ($dbman->index_exists($table, $index)) {
- $dbman->drop_index($table, $index);
- }
- }
- }
-
- // Rename "question" -> "questionid".
- // Rename "logical" -> "selecttype".
- // Rename "studentsee" -> "selectcount".
- // Add "(xxx)feedbackformat" fields.
- $table = new xmldb_table('qtype_ordering_options');
- $fields = [
- 'questionid' => new xmldb_field('question', XMLDB_TYPE_INTEGER, '11', null, XMLDB_NOTNULL, null, '0', 'id'),
- 'selecttype' => new xmldb_field('logical', XMLDB_TYPE_INTEGER, '4', null, XMLDB_NOTNULL, null, '0', 'questionid'),
- 'selectcount' => new xmldb_field('studentsee', XMLDB_TYPE_INTEGER, '4', null, XMLDB_NOTNULL, null, '0', 'selecttype'),
- 'correctfeedbackformat' => new xmldb_field('correctfeedbackformat', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null,
- '0', 'correctfeedback'),
- 'incorrectfeedbackformat' => new xmldb_field('incorrectfeedbackformat', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL,
- null, '0', 'incorrectfeedback'),
- 'partiallycorrectfeedbackformat' => new xmldb_field('partiallycorrectfeedbackformat', XMLDB_TYPE_INTEGER, '2', null,
- XMLDB_NOTNULL, null, '0', 'partiallycorrectfeedback'),
- ];
- foreach ($fields as $newname => $field) {
- $oldexists = $dbman->field_exists($table, $field);
- $newexists = $dbman->field_exists($table, $newname);
- if ($field->getName() != $newname && $oldexists) {
- if ($newexists) {
- $dbman->drop_field($table, $field);
- } else {
- $dbman->rename_field($table, $field, $newname);
- $newexists = true;
- }
- $oldexists = false;
- }
- $field->setName($newname);
- if ($newexists) {
- $dbman->change_field_type($table, $field);
- } else {
- $dbman->add_field($table, $field);
- }
- }
-
- // Make sure there are no duplicate "questionid" fields in "qtype_ordering_options" table.
- $select = 'questionid, COUNT(*) AS countduplicates, MAX(id) AS maxid';
- $from = '{qtype_ordering_options}';
- $group = 'questionid';
- $having = 'countduplicates > ?';
- $params = [1];
- if ($records = $DB->get_records_sql("SELECT $select FROM $from GROUP BY $group HAVING $having", $params)) {
- foreach ($records as $record) {
- $select = 'id <> ? AND questionid = ?';
- $params = [$record->maxid, $record->questionid];
- $DB->delete_records_select('qtype_ordering_options', $select, $params);
- }
- }
-
- // Restore index on questionid field.
- $table = new xmldb_table('qtype_ordering_options');
- $index = new xmldb_index('qtypordeopti_que_uix', XMLDB_INDEX_UNIQUE, ['questionid']);
- if (! $dbman->index_exists($table, $index)) {
- $dbman->add_index($table, $index);
- }
-
- upgrade_plugin_savepoint(true, 2015011915, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2015110725) {
- $table = new xmldb_table('qtype_ordering_options');
- $fields = [
- new xmldb_field('layouttype', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, 0, 'questionid'),
- new xmldb_field('selecttype', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, 0, 'layouttype'),
- ];
- foreach ($fields as $field) {
- if ($dbman->field_exists($table, $field)) {
- $dbman->change_field_type($table, $field);
- } else {
- $dbman->add_field($table, $field);
- }
- }
- upgrade_plugin_savepoint(true, 2015110725, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2015121734) {
- $table = new xmldb_table('qtype_ordering_options');
- $fields = [
- new xmldb_field('gradingtype', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, 0, 'selectcount'),
- ];
- foreach ($fields as $field) {
- if ($dbman->field_exists($table, $field)) {
- $dbman->change_field_type($table, $field);
- } else {
- $dbman->add_field($table, $field);
- // When adding this field to existing records,
- // the gradingtype is set to whatever the selecttype is.
- $DB->execute('UPDATE {qtype_ordering_options} SET gradingtype = selecttype', []);
- }
- }
- upgrade_plugin_savepoint(true, 2015121734, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2016032949) {
- if ($dbman->table_exists('reader_question_instances')) {
- $select = 'rqi.question, COUNT(*) AS countquestion';
- $from = '{reader_question_instances} rqi '.
- 'LEFT JOIN {question} q ON rqi.question = q.id';
- $where = 'q.qtype = ?';
- $group = 'rqi.question';
- $params = ['ordering'];
- if ($questions = $DB->get_records_sql("SELECT $select FROM $from WHERE $where GROUP BY $group", $params)) {
- $questions = array_keys($questions);
- list($select, $params) = $DB->get_in_or_equal($questions);
- $select = "questionid $select";
- $table = 'qtype_ordering_options';
- $DB->set_field_select($table, 'layouttype', 0, $select, $params); // VERTICAL.
- $DB->set_field_select($table, 'selecttype', 1, $select, $params); // RANDOM.
- $DB->set_field_select($table, 'gradingtype', 1, $select, $params); // RELATIVE.
-
- // For selectcount, we only fix the value, if it is zero (=ALL)
- // because Ordering questions for some low level books use 4.
- $select .= ' AND selectcount = ?';
- $params[] = 0;
- $DB->set_field_select($table, 'selectcount', 6, $select, $params); // Six.
- }
- }
- upgrade_plugin_savepoint(true, 2016032949, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2016081655) {
- $table = new xmldb_table('qtype_ordering_options');
- $field = new xmldb_field('showgrading', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, 1, 'gradingtype');
- if ($dbman->field_exists($table, $field)) {
- $dbman->change_field_type($table, $field);
- } else {
- $dbman->add_field($table, $field);
- }
- upgrade_plugin_savepoint(true, 2016081655, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2019071191) {
-
- // Add field "numberingstyle" to table "qtype_ordering_options".
- // This field was briefly called "answernumbering".
- $table = new xmldb_table('qtype_ordering_options');
- $field = new xmldb_field('answernumbering', XMLDB_TYPE_CHAR, '10', null, XMLDB_NOTNULL, null, 'none', 'showgrading');
- $newname = 'numberingstyle';
-
- $oldexists = $dbman->field_exists($table, $field);
- $newexists = $dbman->field_exists($table, $newname);
- if ($oldexists) {
- if ($newexists) {
- $dbman->drop_field($table, $field);
- } else {
- $dbman->rename_field($table, $field, $newname);
- $newexists = true;
- }
- $oldexists = false;
- }
- $field->setName($newname);
- if ($newexists) {
- $dbman->change_field_type($table, $field);
- } else {
- $dbman->add_field($table, $field);
- }
- upgrade_plugin_savepoint(true, 2019071191, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2019073193) {
- $table = 'qtype_ordering_options';
- $field = 'numberingstyle';
- $select = "$field = ? OR $field = ?";
- $params = ['III', 'ABC'];
- if ($options = $DB->get_records_select($table, $select, $params, $field, "id,$field")) {
- foreach ($options as $option) {
- switch ($option->numberingstyle) {
- case 'ABC':
- $DB->set_field($table, $field, 'ABCD', ['id' => $option->id]);
- break;
- case 'III':
- $DB->set_field($table, $field, 'IIII', ['id' => $option->id]);
- break;
- // phpcs:ignore Squiz.PHP.CommentedOutCode.Found
- // Ignore "abc", "iii", and anything else.
- }
- }
- }
- upgrade_plugin_savepoint(true, 2019073193, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2022092000) {
- $table = new xmldb_table('qtype_ordering_options');
- $field = new xmldb_field('shownumcorrect', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, 0);
- if ($dbman->field_exists($table, $field)) {
- $dbman->change_field_type($table, $field);
- } else {
- $dbman->add_field($table, $field);
- }
- upgrade_plugin_savepoint(true, 2022092000, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2023092911) {
- // The option to set "All" for the subset size ('selectcount') setting is no longer supported, therefore we need
- // to update all data that references this option.
-
- // The 'selectcount' column from the 'qtype_ordering_options' table currently defines "0" as its default value.
- // This value ("0") used to represent the removed "All" option for the 'selectcount' setting, therefore we need
- // to update this to a new default of "2" which is the minimum number of items required to create a subset.
- $table = new xmldb_table('qtype_ordering_options');
- $field = new xmldb_field('selectcount');
- $field->set_attributes(XMLDB_TYPE_INTEGER, '4', null, XMLDB_NOTNULL, null, 2);
- $dbman->change_field_default($table, $field);
-
- // We need to find all ordering question configurations that currently store the unsupported "0" (all) option
- // for the 'selectcount' setting and the total number of answers that are related to each of these ordering
- // questions.
- $sql = "SELECT qoo.id, COUNT(DISTINCT(qa.id)) AS answerscount
- FROM {qtype_ordering_options} qoo
- JOIN {question_answers} qa ON qa.question = qoo.questionid
- WHERE selectcount = :selectcount
- GROUP BY qoo.id";
- $questionoptions = $DB->get_recordset_sql($sql, ['selectcount' => 0]);
- foreach ($questionoptions as $questionoption) {
- // Update the value of the 'selectcount' configuration option for the current ordering question and set it
- // to the total number of answers related to this question. This way, we are making sure that the original
- // behavior is preserved and all existing items (answers) related to the question will be included in the
- // subset.
- $DB->set_field('qtype_ordering_options', 'selectcount', $questionoption->answerscount,
- ['id' => $questionoption->id]);
- }
- $questionoptions->close();
-
- // Currently, a 'qtype_ordering_selectcount' user preference is set (or updated, if it already exists) each time
- // a new ordering question is created. If there are user preferences that store the removed "0" (all) option, they
- // need to be updated. In this case, replace it with "2" (minimum number of items required to create a subset).
- $wheresql = 'name = ? AND ' . $DB->sql_compare_text('value') . ' = ?';
- $params = ['qtype_ordering_selectcount', '0'];
- $DB->set_field_select('user_preferences', 'value', 2, $wheresql, $params);
-
- upgrade_plugin_savepoint(true, 2023092911, 'qtype', 'ordering');
- }
-
- if ($oldversion < 2024040401) {
- // The option to set "All" for the subset size ('selectcount') setting is no longer supported, therefore we need
- // to update all data that references this option.
-
- // The 'selectcount' column from the 'qtype_ordering_options' table currently defines "0" as its default value.
- // This value ("0") used to represent the removed "All" option for the 'selectcount' setting, therefore we need
- // to update this to a new default of "2" which is the minimum number of items required to create a subset.
- $table = new xmldb_table('qtype_ordering_options');
- $field = new xmldb_field('selectcount');
- $field->set_attributes(XMLDB_TYPE_INTEGER, '4', null, XMLDB_NOTNULL, null, 2);
- $dbman->change_field_default($table, $field);
-
- // We need to find all ordering question configurations that currently store the unsupported "0" (all) option
- // for the 'selectcount' setting and the total number of answers that are related to each of these ordering
- // questions.
- $sql = "SELECT qoo.id, COUNT(DISTINCT(qa.id)) AS answerscount
- FROM {qtype_ordering_options} qoo
- JOIN {question_answers} qa ON qa.question = qoo.questionid
- WHERE selectcount = :selectcount
- GROUP BY qoo.id";
- $questionoptions = $DB->get_recordset_sql($sql, ['selectcount' => 0]);
- foreach ($questionoptions as $questionoption) {
- // Update the value of the 'selectcount' configuration option for the current ordering question and set it
- // to the total number of answers related to this question. This way, we are making sure that the original
- // behavior is preserved and all existing items (answers) related to the question will be included in the
- // subset.
- $DB->set_field('qtype_ordering_options', 'selectcount', $questionoption->answerscount,
- ['id' => $questionoption->id]);
- }
- $questionoptions->close();
-
- // Currently, a 'qtype_ordering_selectcount' user preference is set (or updated, if it already exists) each time
- // a new ordering question is created. If there are user preferences that store the removed "0" (all) option, they
- // need to be updated. In this case, replace it with "2" (minimum number of items required to create a subset).
- $wheresql = 'name = ? AND ' . $DB->sql_compare_text('value') . ' = ?';
- $params = ['qtype_ordering_selectcount', '0'];
- $DB->set_field_select('user_preferences', 'value', 2, $wheresql, $params);
-
- upgrade_plugin_savepoint(true, 2024040401, 'qtype', 'ordering');
- }
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/random/db/upgrade.php b/public/question/type/random/db/upgrade.php
index 80c3ca23f46..71172e90956 100644
--- a/public/question/type/random/db/upgrade.php
+++ b/public/question/type/random/db/upgrade.php
@@ -27,12 +27,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_random_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/randomsamatch/db/upgrade.php b/public/question/type/randomsamatch/db/upgrade.php
index 6a8ba853138..118b5347914 100644
--- a/public/question/type/randomsamatch/db/upgrade.php
+++ b/public/question/type/randomsamatch/db/upgrade.php
@@ -27,12 +27,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_randomsamatch_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/shortanswer/db/upgrade.php b/public/question/type/shortanswer/db/upgrade.php
index bc16882fbf5..2e077d687d7 100644
--- a/public/question/type/shortanswer/db/upgrade.php
+++ b/public/question/type/shortanswer/db/upgrade.php
@@ -28,12 +28,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_qtype_shortanswer_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/question/type/truefalse/db/upgrade.php b/public/question/type/truefalse/db/upgrade.php
index 59cebed431c..e5e147e7364 100644
--- a/public/question/type/truefalse/db/upgrade.php
+++ b/public/question/type/truefalse/db/upgrade.php
@@ -29,12 +29,6 @@
* @return bool
*/
function xmldb_qtype_truefalse_upgrade(int $oldversion): bool {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/repository/dropbox/db/upgrade.php b/public/repository/dropbox/db/upgrade.php
index 787a129541b..d8bb4fbd2b1 100644
--- a/public/repository/dropbox/db/upgrade.php
+++ b/public/repository/dropbox/db/upgrade.php
@@ -19,12 +19,6 @@
* @return bool result
*/
function xmldb_repository_dropbox_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/repository/flickr/db/upgrade.php b/public/repository/flickr/db/upgrade.php
index 7ce2dcc5cbe..ee3fe0e879f 100644
--- a/public/repository/flickr/db/upgrade.php
+++ b/public/repository/flickr/db/upgrade.php
@@ -30,12 +30,6 @@
* @return bool
*/
function xmldb_repository_flickr_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/repository/googledocs/db/upgrade.php b/public/repository/googledocs/db/upgrade.php
index 179a3c76e5d..8a704ad0c2b 100644
--- a/public/repository/googledocs/db/upgrade.php
+++ b/public/repository/googledocs/db/upgrade.php
@@ -19,12 +19,6 @@
* @return bool result
*/
function xmldb_repository_googledocs_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/repository/onedrive/db/upgrade.php b/public/repository/onedrive/db/upgrade.php
index 1a10c1b5094..2bbf0f40b46 100644
--- a/public/repository/onedrive/db/upgrade.php
+++ b/public/repository/onedrive/db/upgrade.php
@@ -22,12 +22,6 @@
* @return bool result
*/
function xmldb_repository_onedrive_upgrade($oldversion) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.
diff --git a/public/search/engine/simpledb/db/upgrade.php b/public/search/engine/simpledb/db/upgrade.php
index d4658b1a97f..2612e6a5781 100644
--- a/public/search/engine/simpledb/db/upgrade.php
+++ b/public/search/engine/simpledb/db/upgrade.php
@@ -27,12 +27,6 @@
* @param int $oldversion the version we are upgrading from.
*/
function xmldb_search_simpledb_upgrade($oldversion = 0) {
- // Automatically generated Moodle v4.2.0 release upgrade line.
- // Put any upgrade step following this.
-
- // Automatically generated Moodle v4.3.0 release upgrade line.
- // Put any upgrade step following this.
-
// Automatically generated Moodle v4.4.0 release upgrade line.
// Put any upgrade step following this.