1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

MDL-24322 grrr, fixing my previous commit, sorry Eloy

This commit is contained in:
Petr Skoda 2010-09-21 10:40:48 +00:00
parent 7c0808b6b8
commit e5dadefafc

@ -281,9 +281,7 @@ class ddl_test extends UnitTestCase {
$table->add_field('rid', 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'));
// this is a sloppy workaround for borked prev/next processing in xmldb table
$key = new xmldb_key('primary', XMLDB_KEY_PRIMARY, array('rid'));
$table->addKey($key, 'id');
$table->add_key('primaryx', XMLDB_KEY_PRIMARY, array('id'));
$table->setComment("This is a test'n drop table. You can drop it safely");
$this->tables[$table->getName()] = $table;