mailster_actions table does not have explicit primary key
-
Hello
I have faced problem with Mailter in context of moving database into Percona XtraDB Cluster – https://www.percona.com/doc/kubernetes-operator-for-pxc/kubernetes.html
The thing is PXC have “validator” https://www.percona.com/doc/percona-xtradb-cluster/LATEST/features/pxc-strict-mode.html
And table mailster_actions have problem:
Percona-XtraDB-Cluster prohibits use of DML command on a table (userdb.wp_mailster_actions) without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER
CREATE TABLEwp_mailster_actions(
subscriber_idbigint(20) unsigned DEFAULT NULL,
campaign_idbigint(20) unsigned DEFAULT NULL,
timestampint(11) unsigned NOT NULL DEFAULT ‘0’,
countint(11) unsigned NOT NULL DEFAULT ‘0’,
typetinyint(1) NOT NULL DEFAULT ‘0’,
link_idbigint(20) unsigned NOT NULL DEFAULT ‘0’,
UNIQUE KEYid(subscriber_id,campaign_id,type,link_id),
KEYsubscriber_id(subscriber_id),
KEYcampaign_id(campaign_id),
KEYtype(type)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;It is possible to solve this problem?
The topic ‘mailster_actions table does not have explicit primary key’ is closed to new replies.