Gallery
Gallery copied to clipboard
Fix SQL queries with "rank" in MySQL 8
In MySQL 8 RANK is a reserved keyword. Because both classes galAlbum and galAlbumItem have a field called "rank", there are SQL queries that fail. This PR should fix it.
Related forum topic: https://community.modx.com/t/solved-problem-persists-with-gallery-2-0-0-not-displaying-images-in-manager/5558
This pull request has been mentioned on MODX Community. There might be relevant details there:
https://community.modx.com/t/gallery-manager-does-not-show-images/5618/16
This pull request has been mentioned on MODX Community. There might be relevant details there:
https://community.modx.com/t/gallery-not-showing-prettyphoto-inlet-after-upgrading-modx-to-2-8-4-and-gallery-to-2-0-0/5622/4
This pull request has been mentioned on MODX Community. There might be relevant details there:
https://community.modx.com/t/gallery-with-mysql8-0/6506/2
@opengeek Is it possible to merge this PR? It will bring MySQL 8 compatibility to this package.