0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/data/migrations/versions/4.0
Kevin Ansfield c2793eedd3 Fixed no-restricted-require warning for core/shared/url-utils.js
no issue

Our server-defined `mobiledoc` object was required by `UrlUtils.cardTransformers` property to help set up a shortcut for url transform functions but that was breaking the independence of `UrlUtils` by crossing the shared/server boundary.

- `cardTransformers` is only needed for the `mobiledocToTransformReady` utility function that will only be used by the server
- removed `UrlUtils.cardTransformers` (and associated require) from our `UrlUtils` instance and updated the few areas the server uses `mobiledocToTransformReady()` to pass in the mobiledoc card objects directly as an option
2021-05-25 21:13:57 +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 Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
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
15-add-frontmatter-column-to-meta.js
16-refactor-slack-setting.js Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
17-populate-members-status-events-table.js Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
18-transform-urls-absolute-to-transform-ready.js Fixed no-restricted-require warning for core/shared/url-utils.js 2021-05-25 21:13:57 +01:00
19-remove-labs-members-setting.js
20-refactor-unsplash-setting.js
21-sanitize-email-batches-provider-id.js
22-solve-orphaned-webhooks.js Updated bson-objectid calls to match API change 2021-04-21 16:23:52 +01:00
23-regenerate-posts-html.js
24-add-missing-email-permissions.js
25-populate-members-paid-subscription-events-table.js Handled week & day interval in population of mrr events 2021-05-21 17:57:17 +01:00
26-add-cascade-on-delete.js
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
30-set-default-accent-color.js Added default value to accent_color setting (#12743) 2021-03-09 16:15:10 +00:00