0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/models
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
..
base Added support for 'FOR UPDATE' lock (#14433) 2022-04-08 12:52:33 +01:00
relations
action.js
api-key.js
author.js
benefit.js
custom-theme-setting.js
email-batch.js
email-recipient.js
email.js
index.js
integration.js
invite.js
label.js
member-analytic-event.js
member-cancel-event.js Added the MemberCancelEvent model 2022-03-11 21:50:06 +01:00
member-email-change-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-login-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-paid-subscription-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-payment-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-product-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-status-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-stripe-customer.js
member-subscribe-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member.js Added relation between newsletters and members 2022-04-05 22:23:39 +05:30
mobiledoc-revision.js
newsletter.js Cleaned up newsletter schema migrations (#14441) 2022-04-08 19:06:30 +05:30
offer-redemption.js
offer.js
permission.js
post.js Added the post-newsletter relation (#14411) 2022-04-07 10:26:37 +02:00
posts-meta.js
product.js Switched products.visible for products.visibility (#14264) 2022-03-04 11:07:38 +00:00
role.js
session.js
settings.js Refactored default settings population to reduce unnecessary DB queries 2022-02-08 10:11:00 +01:00
single-use-token.js Updated SingleUseToken grace period to 10 minutes (#13926) 2022-01-03 17:55:53 +02:00
snippet.js
stripe-customer-subscription.js
stripe-price.js
stripe-product.js
tag-public.js
tag.js 🐛 Fixed "Create Post" action error in Zapier when assigning new tags (#13972) 2022-01-14 13:37:20 +00:00
user.js Fixed error when editing user with empty roles data 2022-03-10 17:29:30 +00:00
webhook.js