1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-08 12:09:43 +03:00
Ghost/core/server/data/migrations
Kevin Ansfield b1aafd715d
Added members.email_{count,opened_count} column migrations ()
refs https://github.com/TryGhost/Ghost/issues/12461

- adds `members.email_count` and `members.email_opened_count` columns to contain cached counts for faster queries when outputting member data via API
- adds migration to populate cached counts with existing data
  - tested locally on ~50k members which took ~4sec on mysql
- updates members output serializer to include the new fields in API output
2020-12-09 12:21:56 +00:00
..
hooks Updated Settings.populateDefaults() to account for available columns 2020-06-29 13:22:10 +00:00
init Moved core/server/lib/common/logging to core/shared/logging () 2020-05-28 19:30:23 +01:00
versions Added members.email_{count,opened_count} column migrations () 2020-12-09 12:21:56 +00:00
utils.js Refactored column migrations to use helpers () 2020-11-16 11:55:51 +00:00