From: stronk7 Date: Mon, 2 Oct 2006 17:02:07 +0000 (+0000) Subject: MySQL doesn't have check constraints. We use enums instead. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc7c388280bf7e53a20b7d954e80d9cdf30d9e92;p=moodle.git MySQL doesn't have check constraints. We use enums instead. --- diff --git a/lib/xmldb/classes/generators/mysql/mysql.class.php b/lib/xmldb/classes/generators/mysql/mysql.class.php index 54251f977b..a22df85e62 100644 --- a/lib/xmldb/classes/generators/mysql/mysql.class.php +++ b/lib/xmldb/classes/generators/mysql/mysql.class.php @@ -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 */