0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data/migrations/versions/4.43
Rishabh Garg b0df387deb
Cleaned up newsletter schema migrations (#14441)
refs https://github.com/TryGhost/Team/issues/1500

The newsletter table schema has bunch of changes to go through for new and existing columns, this consolidates the schema changes into a single re-create table migration that drops and adds the newsletter table with correct schema. The table re-create migration needs to run before any of the tables using newsletter as foreign key. The changes include -

- new columns for design related fields
- new slug column for filtering
- unique constraint to `name` column
- remove `default` column (noops the existing default column migration)
- `sender_reply_to` has a default of newsletter and a validation of ['newsletter', 'support']
- updated default values for `subscribe_on_signup` and  `recipient_filter`
2022-04-08 19:06:30 +05:30
..
2022-03-28-19-26-recreate-newsletter-table.js Cleaned up newsletter schema migrations (#14441) 2022-04-08 19:06:30 +05:30
2022-03-29-14-45-add-members-newsletters-table.js
2022-04-01-10-13-add-post-newsletter-relation.js
2022-04-06-09-47-add-type-column-to-paid-subscription-events.js Added type column to members_paid_subscription_events (#14432) 2022-04-07 11:29:14 +01:00
2022-04-08-10-45-add-subscription-id-to-mrr-events.js Added subscription_id to MRR events (#14445) 2022-04-08 14:04:40 +01:00