Commit Graph

18 Commits

Author SHA1 Message Date
John Oleksowicz
c2612f4511 Shorten the max tag name from 255 to 191 chars
MySQL has maximum key lengths for indexes, and the number can vary based
 on storage engine and MySQL version. Using utf8mb4, the index would be
 255 * 4 = 1020 bytes long, exceeding the MyISAM maximum of 1000 bytes
 and the MySQL 5.6 maximum of 767 bytes.

 See Column Prefix Key Parts in the MySQL reference:
 https://dev.mysql.com/doc/refman/8.0/en/create-index.html

 By reducing this length to 191, we ensure that the maximum likely index
 length will be less than the 767 lower bound (191 * 4 = 764).

 MAILPOET-4489
2022-07-20 09:30:43 +02:00
Rodrigo Primo
b2ba612145 Fix: don't run the code to enable third party libraries for new installs
This commit fixes the logic of the code that enables third party
libraries by default. It was meant to enable those libraries only for
existing installs when the code was introduced in cfae753601
to avoid breaking functionality. But due to a bug, it was also enabling
those libraries for new installs.

To fix this issue, this commit moves the code to the Migrator class and
makes sure it is only executed for existing installs and only once when
doing a version update.

[MAILPOET-4285]
2022-07-12 16:01:39 +02:00
Jan Lysý
2a74f92e10 Create tables for subscriber tags
[MAILPOET-4440]
2022-07-12 13:35:00 +02:00
Jan Lysý
5ab04b8b22 Remove usage constant from the old model
[MAILPOET-4338]
2022-05-19 14:18:06 +02:00
David Remer
acd8fbb773 Move MailPoet cron users to WordPress cron
[MAILPOET-4271]
2022-05-09 13:06:28 +02:00
Brezo Cordero
8077322a29 Simplify the query to calculate lifetime emails
Also rename email_counts to email_count and update tests

[MAILPOET-4177]
2022-04-07 10:17:38 +02:00
Brezo Cordero
8fe323c9c7 Add new column on subscribers to store email counts
This value will store the emails received in the lifetime of a subscriber. Used for stats and deactivation.

[MAILPOET-4177]
2022-04-07 10:17:38 +02:00
Sam Najian
a2ab1a3cfd Escape queries before passing to $wpdb methods
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
John Oleksowicz
00f3e3787d New service for handling setting changes
[MAILPOET-4061]
2022-02-07 14:37:08 +01:00
John Oleksowicz
82a6fb8ac7 Refactor migrator to be a DI service
[MAILPOET-4061]
2022-02-07 14:37:08 +01:00
John Oleksowicz
3cf92cb81e Update setting type to match default
[MAILPOET-4061]
2022-02-07 14:37:08 +01:00
John Oleksowicz
ffb0416cf7 Update version check for consistency
[MAILPOET-4061]
2022-02-07 14:37:08 +01:00
John Oleksowicz
5e9728c91a Migration and tests for new default value
[MAILPOET-4061]
2022-02-07 14:37:08 +01:00
Rostislav Wolny
791f40fd7c Update migration check for email action segments data migration
[MAILPOET-3951]
2022-01-21 15:28:31 +01:00
Rostislav Wolny
1a7f6328dc Update migration version check
[MAILPOET-3951]
2022-01-19 16:18:08 +01:00
Rostislav Wolny
dc55aaa566 Add email actions filters format migration
[MAILPOET-3951]
2022-01-19 16:18:08 +01:00
Jan Lysý
3f07e591c8 Fix integration tests compatibility with PHP 8.1
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00