Commit 6957a254 authored by Robert Lyon's avatar Robert Lyon
Browse files

Should use ensure_record_exists rather than insert_record



To avoid potential upgrade problems

Change-Id: If2c70c092aa5e71e02e7180a9dc7062640f3ac9a
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 5294c73c
......@@ -4504,7 +4504,7 @@ function xmldb_core_upgrade($oldversion=0) {
log_debug('Add a "clearcaches" event');
$e = new StdClass;
$e->name = 'clearcaches';
insert_record('event_type', $e);
ensure_record_exists('event_type', $e, $e);
}
if ($oldversion < 2016062200) {
......
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