Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(major): use
mysql2
library if present
fixes TryGhost/Toolbox#306 - this fixes an issue whereby newer versions of Ghost ship with mysql2 and not mysql, but to maintain compatibility, the config uses `mysql` - this means knex would attempt to use the `mysql` lib, but the library wouldn't exist - this commit adds a check to see if `mysql2` exists and override the client we connect with if so
- Loading branch information