mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-58266 core_completion: Fix upgrade script.
Remove 0 default value for timecreated in course_module_viewed table
This commit is contained in:
parent
8d6a2d68e6
commit
4272ccd65f
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue