From: Eloy Lafuente Date: Tue, 3 Nov 2009 10:20:56 +0000 (+0000) Subject: Added missing PK causing problems in MySQL. Will test that later in X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7c476352203a0b782889ae2787f1b3d72b9c322e;p=moodle.git Added missing PK causing problems in MySQL. Will test that later in proper DDL tests... --- diff --git a/lib/dml/simpletest/testdml.php b/lib/dml/simpletest/testdml.php index cf931ed96a..333e942f53 100755 --- a/lib/dml/simpletest/testdml.php +++ b/lib/dml/simpletest/testdml.php @@ -2347,6 +2347,7 @@ class dml_test extends UnitTestCase { $table->add_field('id', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, XMLDB_SEQUENCE, null); $table->add_field('course', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, '0'); + $table->add_key('primary', XMLDB_KEY_PRIMARY, array('id')); $dbman->create_table($table); $this->tables[$tablename] = $table;