mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
30c4f11e27
closes https://github.com/TryGhost/Team/issues/1684 **Migrations:** - Added report permissions (fixtures + migrations) - Dropped reason field in reports (no textarea in reports in V1) - Dropped nullable from comment_likes.member_id (can't be null) - Added SET NULL/CASCADE foreign keys for comments related tables(*) (*): fixes https://github.com/TryGhost/Team/issues/1687 refs https://ghost.slack.com/archives/C02G9E68C/p1658217288591369 This commit adds support for `SET NULL` foreign keys in schema and migration helpers + also fixes the foreign keys for the comment_reports, comment_likes and comments tables. - When a member is deleted, we **do** want to keep their reports (SET NULL) - When a member is deleted, we **do not** want to keep their likes (CASCADE) - When a member is deleted, we **do** want to keep the comments (SET NULL) **Changes:** - Added report API: `POST /members/api/comments/{id}}/report/` - Sends an email to the owner when a comment is reported - Saves a report to the database (not used for now, but might be useful later) |
||
---|---|---|
.. | ||
migration.test.js |