]> git.mjollnir.org Git - moodle.git/commitdiff
MySQL doesn't have check constraints. We use enums instead.
authorstronk7 <stronk7>
Mon, 2 Oct 2006 17:02:07 +0000 (17:02 +0000)
committerstronk7 <stronk7>
Mon, 2 Oct 2006 17:02:07 +0000 (17:02 +0000)
lib/xmldb/classes/generators/mysql/mysql.class.php

index 54251f977bd05beece5945314e4355dbab3114ac..a22df85e6284e26303207f1abbc8535c6a753498 100644 (file)
@@ -243,6 +243,18 @@ class XMLDBmysql extends XMLDBGenerator {
         return array($comment);
     }
 
+    /**
+     * Given one XMLDBTable returns one array with all the check constrainsts 
+     * in the table (fetched from DB)
+     * Each element contains the name of the constraint and its description
+     * If no check constraints are found, returns an empty array
+     * MySQL doesn't have check constraints in this implementation
+     */
+    function getCheckConstraintsFromDB($xmldb_table) {
+
+        return array();
+    }
+
     /**
      * Returns an array of reserved words (lowercase) for this DB
      */