Hi,
We have upgraded the CTA schema from 4.5 to 4.6 on our development instance (using the script here: catalogue/migrations/liquibase/oracle · master · cta / CTA · GitLab).
Using cta-catalogue-schema-verify (from cta-catalogueutils-4.6.1-1.el7.x86_64). It seems to successfully verify the schema, but outputs several warnings for “Column X is part of a foreign key constraint but has no index”:
[root@cta-front02 ~]# cta-catalogue-schema-verify /etc/cta/cta-catalogue.conf
Schema version : 4.6
Checking indexes...
SUCCESS
Checking tables, columns and constraints...
SUCCESS
Status of the checking : SUCCESS
WARNING: Column ARCHIVE_FILE.STORAGE_CLASS_ID is part of a foreign key constraint but has no index
WARNING: Column FILE_RECYCLE_LOG.STORAGE_CLASS_ID is part of a foreign key constraint but has no index
WARNING: Column FILE_RECYCLE_LOG.VID is part of a foreign key constraint but has no index
WARNING: Column REQUESTER_ACTIVITY_MOUNT_RULE.MOUNT_POLICY_NAME is part of a foreign key constraint but has no index
WARNING: Column REQUESTER_GROUP_MOUNT_RULE.MOUNT_POLICY_NAME is part of a foreign key constraint but has no index
WARNING: Column REQUESTER_MOUNT_RULE.MOUNT_POLICY_NAME is part of a foreign key constraint but has no index
WARNING: Column STORAGE_CLASS.VIRTUAL_ORGANIZATION_ID is part of a foreign key constraint but has no index
WARNING: Column TAPE.LOGICAL_LIBRARY_ID is part of a foreign key constraint but has no index
WARNING: Column TAPE.MEDIA_TYPE_ID is part of a foreign key constraint but has no index
WARNING: Column TAPE_POOL.VIRTUAL_ORGANIZATION_ID is part of a foreign key constraint but has no index
[root@cta-front02 ~]#
Is this something to be concerned about? I note from this issue that this is related to some recent work - Check all foreign key references have a full index on both sides of the constraint (#1158) · Issues · cta / CTA · GitLab - so possibly just an improvement in the verification rather than a new problem with our DB.
Thanks,
Tom