0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/test/unit/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
api-key.test.js
custom-theme-setting.test.js Added image as an allowed custom theme setting type 2021-10-14 18:41:54 +01:00
integration.test.js
invite.test.js
member.test.js
newsletter.test.js Cleaned up newsletter schema migrations (#14441) 2022-04-08 19:06:30 +05:30
permission.test.js
post.test.js Moved URL service to backend 2021-10-19 07:29:09 +13:00
session.test.js
settings.test.js
single-use-token.test.js Updated SingleUseToken grace period to 10 minutes (#13926) 2022-01-03 17:55:53 +02:00
tag.test.js
user.test.js