]> git.mjollnir.org Git - moodle.git/commitdiff
Standard naming now user FOUR char for tables (to avoid
authorstronk7 <stronk7>
Tue, 22 Aug 2006 16:15:44 +0000 (16:15 +0000)
committerstronk7 <stronk7>
Tue, 22 Aug 2006 16:15:44 +0000 (16:15 +0000)
avoid some potential duplicates)

lib/xmldb/classes/generators/XMLDBGenerator.class.php

index 32b58764c5ad317ee7c252d8d9aa4c78bc226d7a..7d9aafbc3822c02ade98d73d832516a54e27e47a 100644 (file)
@@ -397,7 +397,7 @@ class XMLDBgenerator {
     /// Use standard naming. See http://docs.moodle.org/en/XMLDB_key_and_index_naming
         $tablearr = explode ('_', $tablename);
         foreach ($tablearr as $table) {
-            $name .= substr(trim($table),0,3);
+            $name .= substr(trim($table),0,4);
         }
         $name .= '_';
         $fieldsarr = explode (',', $fields);