mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
490f9787fa
no issue For large numbers of members we're unable to perform queries for free/paid members in a reasonable time without indexes. Bulk delete is also very slow when looping through bookshelf models and having bookshelf manage deletion of child records, adding `ON DELETE CASCADE` to the foreign key indexes moves child deletion to the DB level and allows for performant bulk delete queries. - migrations only run on mysql because sqlite does not support altering tables - adds foreign key indexes and constraints with 'ON DELETE CASCADE' for members_labels, members_stripe_customers, and members_stripe_customers_subscriptions |
||
---|---|---|
.. | ||
01-remove-duplicate-subscriptions.js | ||
02-remove-duplicate-customers.js | ||
03-remove-orphaned-customers.js | ||
04-remove-orphaned-subscriptions.js | ||
05-add-member-constraints.js |