From: tjhunt Date: Tue, 7 Apr 2009 05:19:20 +0000 (+0000) Subject: UnitTestCaseUsingDatabase: fix bug with install_one_table_from_xmldb_file X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=465d96958f04d6d29df242487197f0c30112f4a8;p=moodle.git UnitTestCaseUsingDatabase: fix bug with install_one_table_from_xmldb_file The bug prevented you creating the first table from an install.xml file --- diff --git a/lib/ddl/database_manager.php b/lib/ddl/database_manager.php index 9453562305..b048f8d148 100644 --- a/lib/ddl/database_manager.php +++ b/lib/ddl/database_manager.php @@ -432,6 +432,8 @@ class database_manager { if (is_null($targettable)) { throw new ddl_exception('ddlunknowntable', null, 'The table ' . $tablename . ' is not defined in file ' . $file); } + $targettable->setNext(NULL); + $targettable->setPrevious(NULL); $tempstructure = new xmldb_structure('temp'); $tempstructure->addTable($targettable);