UnitTestCaseUsingDatabase: fix bug with install_one_table_from_xmldb_file

The bug prevented you creating the first table from an install.xml file
This commit is contained in:
tjhunt 2009-04-07 05:19:20 +00:00
parent df244bbc3f
commit 465d96958f

View file

@ -432,6 +432,8 @@ class database_manager {
if (is_null($targettable)) { if (is_null($targettable)) {
throw new ddl_exception('ddlunknowntable', null, 'The table ' . $tablename . ' is not defined in file ' . $file); 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 = new xmldb_structure('temp');
$tempstructure->addTable($targettable); $tempstructure->addTable($targettable);