Online texts and files can be collected and published via the Student Folder activity and thus made available to everyone in a Moodle course. Submissions can be made directly by uploading or alternatively can be taken over by teachers from an assignment activity.
Every now and then, we are running the admin/cli/check_database_schema.php script in our Moodle installation.
This time, these issues were highlighted:
-------------------------------------------------------------------------------
publication_groupapproval
* column 'timecreated' should be NOT NULL (I)
* column 'timecreated' has default 'NULL', expected '0' (I)
* column 'timemodified' should be NOT NULL (I)
* column 'timemodified' has default 'NULL', expected '0' (I)
-------------------------------------------------------------------------------
Every now and then, we are running the admin/cli/check_database_schema.php script in our Moodle installation.
This time, these issues were highlighted:
Upon investigation, I saw that there is a discrepancy between https://github.com/academic-moodle-cooperation/moodle-mod_publication/blob/master/db/upgrade.php#L101-L102 and https://github.com/academic-moodle-cooperation/moodle-mod_publication/blob/master/db/install.xml#L68-L83 which might have caused this issue.
May I ask you to have a look at these issues and fix them for existing installations by adding another step to upgrade.php?
Thanks in advance, Alex