Ghost/core/server/data/schema
Rishabh Garg ee0a6910ce
Added table to store multiple newsletters for member (#14408)
refs https://github.com/TryGhost/Team/issues/1469

With multiple newsletters, members will now be able to subscribe to one or more newsletters on the site. Previously, the subscription to default newsletter for a member was controlled via a single boolean `subscribed` column on the member table.
This change allows mapping multiple newsletters to a member via new pivot table that stores relation between a member and newsletter.

- adds new `members_newsletters` pivot table
- update tests
2022-04-04 18:11:36 +05:30
..
clients Switched to mysql2 library 2022-03-03 09:59:37 +01:00
default-settings 💡 Updated fixtures to make it easier to get started (#14299) 2022-03-10 17:41:46 +00:00
fixtures Enabled Admin integration for tiers and offers API (#14325) 2022-03-16 16:46:26 +05:30
checks.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
commands.js Fixed migration util dropping foreign keys before columns 2022-04-04 13:03:38 +01:00
index.js Moved schema validator into the schema module 2021-06-15 11:54:34 +01:00
schema.js Added table to store multiple newsletters for member (#14408) 2022-04-04 18:11:36 +05:30
validator.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00