19.10 upgrade is failing at artefact_plans_plan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
19.10 |
Fix Released
|
High
|
Robert Lyon | ||
20.04 |
Fix Released
|
High
|
Robert Lyon |
Bug Description
Upgrading from 19.04 to 19.10 is failing during DB upgrade at table 'artefact_
[WAR] c7 (lib/dml.php:540) Failed to get a recordset: postgres8 error: [-18: ERROR: relation "artefact_
[WAR] c7 (lib/dml.php:540) LINE 1: SELECT * FROM "artefact_
[WAR] c7 (lib/dml.php:540) ^] in adodb_throw(SELECT * FROM "artefact_
Call stack (most recent first):
* get_recordset_
* get_record_
* get_record(
This is due to the upgrade being out of synch in the creation of the artefact_plans_plan table:
/artefact/
if ($oldversion < 2019071700) {
$table = new XMLDBTable(
...
and lib/db/upgrade.php:
if ($oldversion < 2019040900) {
...
and trying to read from that table.
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Changed in mahara: | |
milestone: | 20.04.0 → none |
Patch for "master" branch: https:/ /reviews. mahara. org/10556