Commit 9cf83e93 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1656699: Check table exists before trying to update it"

parents 1dc0320c 2e1fb390
......@@ -4923,7 +4923,9 @@ function xmldb_core_upgrade($oldversion=0) {
if ($oldversion < 2017022500) {
log_debug('Fixing spelling mistake in SmartEvidence status for PTC matrix');
execute_sql("UPDATE {framework_evidence_statuses} SET name = REPLACE(name, 'criterium', 'criterion') WHERE name LIKE '%criterium'");
if (table_exists(new XMLDBTable('framework_evidence_statuses'))) {
execute_sql("UPDATE {framework_evidence_statuses} SET name = REPLACE(name, 'criterium', 'criterion') WHERE name LIKE '%criterium'");
}
}
return $status;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment