mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
eeafc8603b
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 |
||
---|---|---|
.. | ||
export-filename.js | ||
exporter.js | ||
index.js | ||
table-lists.js |