]> git.mjollnir.org Git - moodle.git/commitdiff
Minor change to do proper create table close
authorstronk7 <stronk7>
Wed, 16 Aug 2006 17:51:49 +0000 (17:51 +0000)
committerstronk7 <stronk7>
Wed, 16 Aug 2006 17:51:49 +0000 (17:51 +0000)
lib/xmldb/classes/generators/XMLDBGenerator.class.php

index c9bd1f738a5c7e27a08238cdd4c7c65c27d89839..ec6f07d0d2e3aa8ea8b1655f140875b8257c9ac3 100644 (file)
@@ -68,7 +68,8 @@ class XMLDBgenerator {
     var $add_table_comments  = true;  // Does the generator need to add code for table comments
 
     var $prefix_on_names = true; //Does the generator need to prepend the prefix to all the key/index/sequence/trigger/check names
-    var $names_max_length = 30; //Max length for key/index/sequence/trigger/check names
+
+    var $names_max_length = 30; //Max length for key/index/sequence/trigger/check names (keep 30 for all!)
 
     var $prefix;         // Prefix to be used for all the DB objects
 
@@ -139,7 +140,7 @@ class XMLDBgenerator {
 
     /// Add comments if specified
         if ($this->add_table_comments) {
-            $table .= $this->getCommentSQL ($xmldb_table) . "\n";
+            $table .= $this->getCommentSQL ($xmldb_table) . ";\n";
         }
     /// Add the indexes (each one, one statement)
         $indexcombs = array(); //To store all the key combinations used