Pierre-Lannoy / wp-apcu-manager

APCu statistics and management right in the WordPress admin dashboard.
https://perfops.one/
GNU General Public License v3.0
6 stars 5 forks source link

Fixes compatibility with MySQL sql_require_primary_key=ON #10

Open ikrestov opened 4 months ago

ikrestov commented 4 months ago

We had an issue installing this on a website using DigitalOcean Managed MySQL due to hosted database running with sql_require_primary_key=ON.

This amends create schema to use PRIMARY KEY instead of UNIQUE KEY

For additional context: sql_require_primary_key=ON is preferred as it helps with node migration/ replications in complex topologies or managed environments (e.g. DO) where it can not be disabled or is not recommended.