0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/data/migrations/versions/3.39
Daniel Lockyer d0e71524ca Switched to util for retrieving DB info in migrations
refs https://github.com/TryGhost/Toolbox/issues/174

- right now, our migrations manually check the client of the knex
  instance to see whether we're running on MySQL or SQLite
- that's been working fine, but the problem is that we're due to switch
  to the mysql2 driver soon, so all these checks will be faulty
- i've altered the functionality of `@tryghost/database-info` to accept
  a knex instance, and it'll return if the DB is MySQL or SQLite in some
  helper functions
- this commit bumps the package and switches to that format
- originally I used a shared instance of the class within
  `@tryghost/database-info` but there's a chance that the knex instance
  inside migrations actually comes from knex-migrator, and not Ghost, so
  that wouldn't work
2022-03-02 15:05:55 +01:00
..
01-add-members-signup-redirect-settings.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
02-add-user-id-to-api-keys-table.js
03-add-email-track-opens-setting.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
04-add-cancellation-reason-column.js
05-remove-unused-columns-on-emails.js Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
06-add-email-recipient-index.js Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
07-add-email-recipients-event-timestamps.js Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
08-add-email-stats-columns.js Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00