Ian Grieve has a useful script to change the compatibility of all database. If you’ve ever run into this issue, you know how useful this can be.
SQL Script to Change Compatibility of All Databases
SQL & DataInstall, Upgrade & AdminDevelopment & Integration
Archived post from 2018. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.