Ghost/core/server/data
Kevin Ansfield 0c59b948fa
Added migrations for email analytics (#12387)
no issue

- cleans up unused tables `emails.{meta,stats}`
- adds timestamp columns `email_recipients.{delivered_at,opened_at,failed_at}` that can be used for event timelines and basic stats aggregation
  - indexed because we want to sort by these columns to find the "latest event" when limiting Mailgun events API requests
- adds aggregated stats columns `emails.{delivered_count,opened_count,failed_count}`
- adds a composite index on `email_recipients.[email_id,member_email]` to dramatically speed up `email_recipient` update queries when processing events
  - modifies the db initialisation to support an `'@@INDEXES@@'` key in table schema definition for composite indexes
2020-11-25 17:48:24 +00:00
..
db Removed global.Promise override (#12182) 2020-11-04 10:55:47 +00:00
exporter Fixed "no-shadow" linting error in server/data modules (#12288) 2020-10-20 11:56:46 +13:00
importer Fixed backward compatibility for send_email_when_published (#12357) 2020-11-11 13:03:41 +00:00
migrations Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
schema Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
validation Improved settings validation (#12048) 2020-07-15 17:11:27 +02:00