CORE-5772: bumped the compatible database version;
CORE-5772: added a missing foreign key constraint