0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/core/server/data/schema
Daniel Lockyer bf6f607f42 Switched to mysql2 library
refs https://github.com/TryGhost/Toolbox/issues/174

- this commit switches Ghost from using the `mysql` library to the
  `mysql2` one
- we've done this for several reasons:
  - `mysql2` is more actively maintained
  - `mysql2` natively supports the default auth plugin on MySQL 8
  - `mysql2` is fasterrrr
- there have been various other commits refactoring the groundwork for
  this commit but this commit should be short and sweet:
  - alias `mysql` to `mysql2` client so we maintain backwards
    compatibility with all configs who use `"client": "mysql"`
  - enabled `decimalNumbers` so we maintain the same functionality as
    `mysql`
  - replaced the dependencies and updated `knex-migrator`
  - hardcoded the newer authentication plugin in MySQL 8 CI. Before
    switching to `mysql2`, this would break because it didn't support
    this
2022-03-03 09:59:37 +01:00
..
clients Switched to mysql2 library 2022-03-03 09:59:37 +01:00
default-settings Made default settings file location configurable 2022-02-21 20:06:20 +13:00
fixtures Added visible column to products table (#14221) 2022-03-01 18:11:59 +02:00
checks.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
commands.js Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
index.js Moved schema validator into the schema module 2021-06-15 11:54:34 +01:00
schema.js Added visible column to products table (#14221) 2022-03-01 18:11:59 +02:00
validator.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00