You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@2886180ea26f:/var/www/vanilla-401# php admin/cli/check_database_schema.php
-------------------------------------------------------------------------------
block_grade_me
* Missing index 'id' (not unique (id)).
CREATE INDEX mdl_blocgradme_id_ix ON mdl_block_grade_me (id);
-------------------------------------------------------------------------------
Inspecting the table mdl_block_grade_me with psql (PostgreSQL interactive terminal) we see that a index does actually already exist, however instead of the expected name mdl_blocgradme_id_ix it is actually called mdl_blocgradme_id3_ix.
At this point the index appear redundant. db/install.xml specifies a foreign key, however postgres creates a index instead of a constraint (foreign key).
Given this, then the primary key would suffice and the index mdl_blocgradme_id3_ix can be removed. Alternatively the mdl_blocgradme_id_pk is removed and the index mdl_blocgradme_id3_ix is extended to be unique.
ScottVerbeek
added a commit
to catalyst/moodle-block_grade_me
that referenced
this issue
Feb 1, 2024
Database PostgreSQL 14.0.
Inspecting the table
mdl_block_grade_me
withpsql
(PostgreSQL interactive terminal) we see that a index does actually already exist, however instead of the expected namemdl_blocgradme_id_ix
it is actually calledmdl_blocgradme_id3_ix
.The text was updated successfully, but these errors were encountered: