]> git.mjollnir.org Git - moodle.git/commitdiff
Added missing PK causing problems in MySQL. Will test that later in
authorEloy Lafuente <stronk7@moodle.org>
Tue, 3 Nov 2009 10:20:56 +0000 (10:20 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Tue, 3 Nov 2009 10:20:56 +0000 (10:20 +0000)
proper DDL tests...

lib/dml/simpletest/testdml.php

index cf931ed96a395e8052fd62c12a5a8b68a5bfca1a..333e942f538d533533381fd7f7946c3839014247 100755 (executable)
@@ -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;