Commit Graph

22 Commits

Author SHA1 Message Date
Jan Jakes
db2e61e987 Use "MAX(subscriber_id)" when fething "updated_at" to leverage DB indexes
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
9db41a5210 Use scheduled task subsriber date for backfilling "sentAt" values
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
7814dda708 Backfill newsletter stats with processed subscribers even with failed status
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
0d71d96cfa Backfill missing sentAt from https://github.com/mailpoet/mailpoet/pull/5416
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
a5d44ba9b6 Backfill missing newsletter statistics from https://github.com/mailpoet/mailpoet/pull/5416
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
78732f8a5d Update also sending queue counts when marking stuck newsletters as sent
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
2804125827 Update also "sent_at" when marking stuck newsletters as sent
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
74f95b972f Split migration code into private methods
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
e3214e441b Add migration to fix sending tasks stuck in "invalid" state
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Rostislav Wolny
de9c03a3bc Add migration for fixing status for newsletters stuck as sending
[MAILPOET-5886]
2024-02-05 15:24:26 +01:00
Jan Lysý
525c80bac4 Fix PHPStan warnings in lib
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Jan Lysý
553fcfa1b4 Extend migration fixing sending queue to welcome emails
[MAILPOET-5719]
2023-12-04 16:04:11 +01:00
Jan Lysý
dc3f9d25f3 Add migration for fixing queues
Some completed tasks for automatic emails can contain invalid counts in related queues.
We need to fix it for displaying the correct counts.
[MAILPOET-5719]
2023-12-04 16:04:11 +01:00
Brezo Cordero
6388a7307f Check table exists before altering it
[MAILPOET-5590]
2023-09-25 05:48:48 -07:00
David Remer
71453f0c14 Switch double quotes with single quotes
[MAILPOET-5485]
2023-09-11 12:14:33 +02:00
David Remer
9991ba546a Separate migration app and db logic
[MAILPOET-5485]
2023-09-11 12:14:33 +02:00
John Oleksowicz
7a6cc36718 Include timeframe in migration to avoid BC code
MAILPOET-5496
2023-08-17 13:49:08 +02:00
John Oleksowicz
0e9bf64986 Migrate existing shipping/payment method filter data
Now that these filters are using the shared DaysPeriodField, they store
the day count in a field named days instead of used_payment_method_days
or used_shipping_method_days.

This migration is based on Migration_20230712_180341, where we needed to
 do the same thing for other filters.

MAILPOET-5496
2023-08-17 13:49:08 +02:00
Rostislav Wolny
7954f9d74f Move newly added migrations (after rebase) to correct folders
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
35b7e9177c Eliminate settings controller from the initial migration
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
435152281a Extract App level method from initial Db migration to a new App level migration
All these extracted methods contain DB version check so for existing
sites the migration will be just added as completed to the migrations table.
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
9684285105 Move clearly App level migrations to App directory
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00