Ghost/core/server/data/migrations/versions/4.0
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-update-mobiledoc.js Added lint rules for migrations 2021-11-29 16:21:43 +00:00
02-add-status-column-to-members.js Added status property to members (#12570) 2021-02-02 16:11:34 +00:00
03-populate-status-column-for-members.js Added lint rules for migrations 2021-11-29 16:21:43 +00:00
04-drop-apps-related-tables.js 🏗 Dropped apps related tables 2021-02-03 12:20:08 +13:00
05-add-members-subscribe-events-table.js Added members_subscribe_events table 2021-02-05 16:02:08 +00:00
06-populate-members-subscribe-events-table.js Added lint rules for migrations 2021-11-29 16:21:43 +00:00
07-alter-unique-constraint-for-posts-slug.js 🏗 Altered slug unique constraint in posts table 2021-02-09 13:31:12 +13:00
08-add-members-login-events-table.js Unified migration logging styles 2021-02-18 17:35:32 +00:00
09-add-members-email-change-events-table.js Updated members_email_change_events to store previous email (#12641) 2021-02-12 16:15:31 +00:00
10-add-members-status-events-table.js Updated members_status_events table (#12647) 2021-02-16 10:38:36 +00:00
11-add-members-paid-subscription-events-table.js Updated members_paid_subscription_events table (#12636) 2021-02-11 12:45:18 +00:00
12-delete-apps-related-settings-keys.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
13-add-members-payment-events-table.js Added members event tables (#12618) 2021-02-11 10:54:30 +00:00
14-remove-orphaned-stripe-records.js Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
15-add-frontmatter-column-to-meta.js Added the frontmatter column to meta 2021-02-12 15:31:04 +01:00
16-refactor-slack-setting.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
17-populate-members-status-events-table.js Added lint rules for migrations 2021-11-29 16:21:43 +00:00
18-transform-urls-absolute-to-transform-ready.js Added lint rules for migrations 2021-11-29 16:21:43 +00:00
19-remove-labs-members-setting.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
20-refactor-unsplash-setting.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
21-sanitize-email-batches-provider-id.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
22-solve-orphaned-webhooks.js Added lint rules for migrations 2021-11-29 16:21:43 +00:00
23-regenerate-posts-html.js Added lint rules for migrations 2021-11-29 16:21:43 +00:00
24-add-missing-email-permissions.js 🐛 Fixed email permissions for all roles 2021-03-01 13:17:43 +00:00
25-populate-members-paid-subscription-events-table.js Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
26-add-cascade-on-delete.js Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
27-add-primary-key-brute-migrations-lock.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
28-add-webhook-intergrations-foreign-key.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
29-fix-foreign-key-for-members-stripe-customers-subscriptions.js Switched to util for retrieving DB info in migrations 2022-03-02 15:05:55 +01:00
30-set-default-accent-color.js Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00