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/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
02-add-status-column-to-members.js
03-populate-status-column-for-members.js
04-drop-apps-related-tables.js
05-add-members-subscribe-events-table.js
06-populate-members-subscribe-events-table.js
07-alter-unique-constraint-for-posts-slug.js
08-add-members-login-events-table.js
09-add-members-email-change-events-table.js
10-add-members-status-events-table.js
11-add-members-paid-subscription-events-table.js
12-delete-apps-related-settings-keys.js
13-add-members-payment-events-table.js
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
16-refactor-slack-setting.js
17-populate-members-status-events-table.js
18-transform-urls-absolute-to-transform-ready.js
19-remove-labs-members-setting.js
20-refactor-unsplash-setting.js
21-sanitize-email-batches-provider-id.js
22-solve-orphaned-webhooks.js
23-regenerate-posts-html.js
24-add-missing-email-permissions.js
25-populate-members-paid-subscription-events-table.js
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
28-add-webhook-intergrations-foreign-key.js
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