Ghost/core
Rishabh Garg eeafc8603b
Added pivot table to store tiers on post (#14038)
refs https://github.com/TryGhost/Team/issues/1071

We used `posts.visibility` originally to store visibility as `free|paid` with a character limit of 50. This same field was repurposed to store an NQL filter when member tiers is enabled. The NQL filter uses the slug of the tier name, which can easily create a filter longer than 50 characters, adding an unwanted limitation on number of tiers that can be added to post's visibility.
Going forward, we'd like to store the visibility of posts for tiers in a separate pivot table and instead store the value of `visibility` as `tiers` when restricting post access to specific tiers. This change -

- adds a new pivot table fixture for storing relation between posts and tiers
- adds a migration for creating the new table
- updates tests
2022-01-31 15:33:58 +05:30
..
client@799b8d0b7e Updated Admin to v4.34.0 2022-01-28 16:00:27 +00:00
frontend Included benefits with theme product data (#14051) 2022-01-24 13:55:25 +02:00
server Added pivot table to store tiers on post (#14038) 2022-01-31 15:33:58 +05:30
shared Updated Portal to show free tier description and benefits 2022-01-17 23:26:58 +05:30
app.js Fixed express app stacking 2021-12-06 21:28:53 +13:00
boot.js Added library for extracting database information 2022-01-18 09:31:08 +00:00
bridge.js Added missing async/await calls 2021-11-23 17:24:50 +00:00