mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
df244bbc3f
commit
465d96958f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue