Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues highlighted by admin/cli/check_database_schema.php #11

Open
abias opened this issue Jul 26, 2021 · 1 comment
Open

Issues highlighted by admin/cli/check_database_schema.php #11

abias opened this issue Jul 26, 2021 · 1 comment

Comments

@abias
Copy link

abias commented Jul 26, 2021

Every now and then, we are running the admin/cli/check_database_schema.php script in our Moodle installation.

This time, this issue was highlighted:

-------------------------------------------------------------------------------
question_oumultiresponse
 * column 'showstandardinstruction' has default '1', expected '0' (I)
-------------------------------------------------------------------------------

Upon investigation, I saw that there is a discrepancy between https://github.com/moodleou/moodle-qtype_oumultiresponse/blob/main/db/install.xml#L20 and https://github.com/moodleou/moodle-qtype_oumultiresponse/blob/main/db/upgrade.php#L77. The first defines a default of 0, the second (which became effective in our Moodle instance as we are using this plugin for a long time now) defines a default of 1.

May I ask you to add another step to db/upgrade.php which fixes the default for upgraded installations?

Thanks in advance,
Alex

@timhunt
Copy link
Member

timhunt commented Aug 5, 2021

Thank you for catching this. Yes, we should fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants