From 7c476352203a0b782889ae2787f1b3d72b9c322e Mon Sep 17 00:00:00 2001 From: Eloy Lafuente <stronk7@moodle.org> Date: Tue, 3 Nov 2009 10:20:56 +0000 Subject: [PATCH] Added missing PK causing problems in MySQL. Will test that later in proper DDL tests... --- lib/dml/simpletest/testdml.php | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5