Standard naming now user FOUR char for tables (to avoid

avoid some potential duplicates)
This commit is contained in:
stronk7
2006-08-22 16:15:44 +00:00
parent 1751eebc69
commit 93d2c55ffc
@@ -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);