[AMOS commit] MDL-76459 xmldb: Add environmental check to verify $CFG->prefix Committed into Git: 2023-03-10 13:06 UTC

[AMOS commit] MDL-76459 xmldb: Add environmental check to verify $CFG->prefix Committed into Git: 2023-03-10 13:06 UTC

by AMOS bot -
Number of replies: 0
Author: Eloy Lafuente (stronk7)
MDL-76459 xmldb: Add environmental check to verify $CFG->prefix
While, right now, sites using long (> 10 chars) $CFG->prefix
can continue working (because we still don't have any table
> 28 chars), as soon as some new table with long name is added,
it won't work with PostgreSQL anymore (if the 63 limit is raised).

Hence, this environmental check will verify on both install and
upgrade that the $CFG->prefix is always <= 10 chars.

Sites with longer prefixes will need to rename all their tables
(and maybe other objects, depending on the dbtype) to use a shorter
prefix.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=955a276e6e431db6c41a7fca174345e8339c6802
http://github.com/moodle/moodle/commit/955a276e6e431db6c41a7fca174345e8339c6802

+ 4.0 en [dbprefixtoolong,core_admin]