0

Laravel has 2 tables (migration, password_resets) that don't have PK and is causing problems with Percona DB. My current fix to this is to set Percona into:

  SET GLOBAL pxc_strict_mode=PERMISSIVE;

Error:

  SQLSTATE[HY000]: General error: 1105 Percona-XtraDB-Cluster prohibits use of DML command on a table (tt.password_resets) without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER 

Though I'm not sure if this is the best approach for this.

What should be the best approach to handling this scenario or what I'm doing is already acceptable?

magicianiam
  • 1,474
  • 7
  • 33
  • 70

0 Answers0