MDL-76459 dml: Remove other remaining harcoded uses of old 28 & 30
commitd2b6a1b7f35408c2edbaf2c11d34ff435aeb84fa
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 10 Mar 2023 17:11:14 +0000 (10 18:11 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sat, 2 Sep 2023 07:22:13 +0000 (2 09:22 +0200)
tree234097f04907650b07e47ef52c3faebe619aca6f
parent8996ee0eaa287407b32689420d71f6b7d16b6da6
MDL-76459 dml: Remove other remaining harcoded uses of old 28 & 30

Let's require lib/ddllib.php and use the constant properly,
so we don't need to go searching for cases in future changes.

They are a hand of files, but already are included often each
time the database manager is included. Possible alternative
for this, if we want to reduce the number of included files
is to move the constants to xmldb_constants and only include
that file, but I don't think that makes much sense.

Also, fix the xmldb schema definition to validate table and
column names with the new allowed lengths.
lib/dml/moodle_database.php
lib/dml/oci_native_moodle_database.php
lib/xmldb/xmldb.xsd