From 4272ccd65ff4ce73a0b3615e569fa1bda2f32cee Mon Sep 17 00:00:00 2001 From: Ilya Tregubov Date: Mon, 17 Oct 2022 16:40:07 +0300 Subject: [PATCH] MDL-58266 core_completion: Fix upgrade script. Remove 0 default value for timecreated in course_module_viewed table --- lib/db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 71e3dc5a34c..ae327564370 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2945,7 +2945,7 @@ privatefiles,moodle|/user/files.php'; $table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null); $table->add_field('coursemoduleid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null, 'id'); $table->add_field('userid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null, 'coursemoduleid'); - $table->add_field('timecreated', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0', 'userid'); + $table->add_field('timecreated', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null, 'userid'); // Adding keys to table course_modules_viewed. $table->add_key('primary', XMLDB_KEY_PRIMARY, ['id']);