0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/test/unit/server
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
..
adapters Added ability to delete existing files through storage adapters 2021-11-09 16:07:23 +04:00
data Added pivot table to store tiers on post (#14038) 2022-01-31 15:33:58 +05:30
lib Renamed getLocalFileStoragePath 2021-11-05 17:17:18 +04:00
models Updated SingleUseToken grace period to 10 minutes (#13926) 2022-01-03 17:55:53 +02:00
services Updated misc unversioned tests to run on canary 2022-01-21 15:11:48 +00:00
web Updated misc unversioned tests to run on canary 2022-01-21 15:11:48 +00:00
notify.test.js Fixed notify library tests 2021-12-06 08:20:39 +00:00
overrides.test.js Set global Luxon timezone override to UTC 2021-10-20 09:19:29 +02:00