Fixes #4167: Add a warning before running SQL upgrade script