-
Bug
-
Resolution: Fixed
-
Critical
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-69049-master -
On a Moodle site which has used the standalone GDPR plugins on Moodle 3.4.x upgrading to Moodle 3.9 fails
DDL sql execution error
More information about this error
×Debug info: Unknown column 'dpocommentformat' in 'mdl_tool_dataprivacy_request'
ALTER TABLE mdl_tool_dataprivacy_request ADD systemapproved SMALLINT(4) NOT NULL DEFAULT 0 AFTER dpocommentformat
Error code: ddlexecuteerror
×Stack trace: * line 492 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
- line 1098 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 77 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
- line 547 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
- line 333 of /admin/tool/dataprivacy/db/upgrade.php: call to database_manager->add_field()
- line 692 of /lib/upgradelib.php: call to xmldb_tool_dataprivacy_upgrade()
- line 1917 of /lib/upgradelib.php: call to upgrade_plugins()
- line 711 of /admin/index.php: call to upgrade_noncore()
This is due to MDL-66752 relying on the "dpocommentformat" column - https://github.com/moodle/moodle/blame/MOODLE_39_STABLE/admin/tool/dataprivacy/db/upgrade.php#L329
Looking through the git history the dpocommentformat was added to the install.xml under MDL-61899 -https://github.com/moodle/moodle/blame/MOODLE_39_STABLE/admin/tool/dataprivacy/db/install.xml#L18 but no upgrade step was added during the integration from contrib to core.
Interestingly the upgrade step omission had actually been picked upon but never resolved.
- blocks
-
MDLSITE-6135 Upgrade sandbox.moodledemo.net to 3.9
- Resolved
- is a regression caused by
-
MDL-61899 Include tool_dataprivacy in core
- Closed