Skip to content

Commit 77d59b4

Browse files
Merge pull request #15214 from nextcloud/chore/mariadb-lts
document changes of MariaDB support
2 parents 68f2df3 + b1b6abb commit 77d59b4

3 files changed

Lines changed: 37 additions & 1 deletion

File tree

admin_manual/installation/system_requirements.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For best performance, stability and functionality we have documented some recomm
2626
| | - Alpine Linux |
2727
+------------------+-----------------------------------------------------------------------+
2828
| Database | - MySQL 8.4 / 9.7 |
29-
| | - MariaDB 10.6 / 10.11 / 11.4 / **11.8** (recommended) |
29+
| | - MariaDB 10.11 / 11.4 / **11.8** / 12.3 (recommended) |
3030
| | - Oracle Database 19c, 21c, 23ai |
3131
| | (*only as part of an enterprise subscription*) |
3232
| | - PostgreSQL 14 / 15 / 16 / 17 / **18** (recommended) |

admin_manual/release_notes/upgrade_to_35.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ System requirements
1414

1515
- The list of officially supported databases has been updated:
1616

17+
- MariaDB 10.6 is out of support and thus Nextcloud dropped support for it.
18+
The minimum supported version of MariaDB is now 10.11 LTS.
19+
- MariaDB 12.3 is released as a new LTS version and is now supported by Nextcloud.
1720
- MySQL 8.0 is out of support and thus Nextcloud dropped support for it.
1821
The minimum supported version of MySQL is now 8.4 LTS.
1922
- MySQL 9.7 is released as a new LTS version and is now supported by Nextcloud.

developer_manual/release_notes/critical_changes.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,39 @@ Updated PHP requirements
2929

3030
The support for PHP 8.2 has been dropped, the minimum supported PHP version of Nextcloud 35 is now 8.3.
3131

32+
Updated database requirements
33+
-----------------------------
34+
35+
The following database versions are no longer supported in Nextcloud 35 as they are now out of support by their respective vendors:
36+
37+
- MariaDB 10.6. The minimum supported version of MariaDB is now 10.11 LTS.
38+
- MySQL 8.0. The minimum supported version of MySQL is now 8.4 LTS.
39+
40+
The following new database versions are now supported in Nextcloud 35 as they are now released as LTS versions by their respective vendors.
41+
Make sure to adjust your CI matrix for testing with them. This is automatically done if you use the workflow templates provided by Nextcloud.
42+
43+
- MariaDB 12.3 is now supported.
44+
45+
.. note:: In MariaDB 12+ the query parser is stricter, when using GROUP BY clauses.
46+
47+
If you have constructs like ``SELECT `a`, CAST(`b` as CHAR) as `b` FROM `table` GROUP BY `a`, CAST(`b` as CHAR)``
48+
this will break as the GROUP BY clause will self reference the alias ``b``.
49+
Using a different alias name will fix MariaDB but not all other database systems, as then the cast expression is missing from the GROUP BY clause.
50+
So make this work on all supported database systems you need to use a subquery:
51+
52+
.. code-block:: sql
53+
54+
SELECT `a`, `b`
55+
FROM (
56+
SELECT `a`, CAST(`b` as CHAR) as `b`
57+
FROM `table`
58+
) AS `subquery`
59+
GROUP BY `a`, `b`
60+
61+
- MySQL 9.7 is now supported.
62+
63+
.. note:: MySQL 9+ deprecated support for MD5, so we strongly recommend to migrate away from the MD5 SQL function in your apps.
64+
3265
Removed front-end APIs and libraries
3366
------------------------------------
3467

0 commit comments

Comments
 (0)