-
New Feature
-
Resolution: Fixed
-
Major
-
3.9.23, 4.0.10, 4.1, 4.1.5, 4.2, 4.3
-
MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-76459_401 -
As of MDL-71747, requirements for Oracle have increased to 19c, which may remove the technical limitation of 30 characters for many identifiers. danielneis raised this possibility in MDL-65809. I don't know whether relaxing this limitation is strictly necessary, but a discussion should be had and hopefully a decision can be made.
Current status of identifier limits is as follows:
Database | Tables name limit | Columns name limit | Documentation link |
---|---|---|---|
MySQL | 64 | 64 | link |
MariaDB | 64 | 64 | link |
PostgreSQL | 63 | 63 | link |
SQL*Server | 128 (116 for temp tables) | 128 | link |
Oracle | 128 | 128 | link |
Note: Some are chars, others are bytes/ascii, let's assume we won't be using emojis for table names, but just plain english.
Once this is implemented:
TODO 1: Update all the doc pages making reference to the 28 (table/index names) or 30 (column names) limits:
- https://docs.moodle.org/dev/Database
- https://docs.moodle.org/dev/Using_XMLDB
- devdocs: https://github.com/moodle/devdocs/pull/728
TODO 2: Comment @ MDL-76724 (Moodle 4.3 requirements) about the new prefix limit.
TODO 3: Add the new prefix max length to the Moodle 4.3 requirements page.
TODO 4: (from 39 to 402) - Add the details about the check @ https://docs.moodle.org/401/en/admin/environment/custom_check/check_db_prefix_length (it's linked from the env page).
- has been marked as being related by
-
MDL-74905 Decide Moodle 4.2 requirements and push them to environment.xml (due date: 2022-12-26)
- Closed
-
MDL-76724 Decide Moodle 4.3 requirements and push them to environment.xml (due date: 2023-05-08)
- Closed
-
MDL-78496 Decide Moodle 4.4 requirements and push them to environment.xml (due date for voting: 2023-11-13)
- Closed
-
MDL-71747 Decide Moodle 4.1 requirements and push them to environment.xml (due date: 2022-06-01)
- Closed
-
MDL-72350 Remove Assignment 2.2 (mod_assignment) from core
- Closed
- Testing discovered
-
MDL-77599 Replace all @const uses in core documenting constants by @var
- Closed