Was getting this, so here's a patch to add a new primary key to this database to help replicating data.
[ERROR in query 4282] Percona-XtraDB-Cluster prohibits use of DML command on a table (db.flag_types) without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | flag-add_missing_primary_key-2834419-6.patch | 593 bytes | shura80 |
| #6 | flag-add_missing_primary_key-2834419-5.patch | 577 bytes | Delphine Lepers |
| #2 | 2834419-2.patch | 1.37 KB | joelpittet |
Comments
Comment #2
joelpittetComment #3
joachim commentedThat description isn't correct. Each row here isn't a flag type, it's just part of the flag bundle setting.
Just call this something like 'Serial primary key'. It's nothing to do with the flag at all and we don't want people to think it might be.
BTW, there's another issue somewhere to fold this table into serialized data.
Comment #4
Delphine Lepers commentedNew patch as the hook_update was jumping one number
Comment #5
Delphine Lepers commentedTo keep consistency with the other tables, I used fid as primary key in this new patch
Comment #6
Delphine Lepers commentedComment #7
shura80 commentedThe patch gives the following error if trying to add multiple bundles on the same flag (no difference if flag is new like the one that gives me this error or updated):
this line in the patch:
should be:
Comment #8
shura80 commentedComment #9
shura80 commentedComment #10
shura80 commentedComment #11
Delphine Lepers commentedYou are perfectly right, i have the same issue and tested your patch successfully
Thank you :)
I am marking as RTBC
Comment #12
shura80 commentedThank you too, Delphine!
Comment #13
ivnishClosed as outdated because Drupal 7 is EOL