跳到内容

Primary Key Fixer

v1.3

omelhus · 2020年8月5日 上架

Plugins like Yoast and Slider Revolution doesn't create a PRIMARY KEY on tables when they are created. This is an issue when using services like …

正在使用
200+
评分
暂无
累计下载
4,326
最近更新
2021年8月29日
需要 WordPress 5.1+已测试到 5.8.20PHP 7.2+

贡献者

Plugins like Yoast and Slider Revolution doesn’t create a PRIMARY KEY on tables when they are created. This is an issue when using services like Digital Ocean managed databases etc that uses replication and requires primary keys.

By installing this plugin it will add a query filter and look for queries that include CREATE TABLE and UNIQUE KEY, but not PRIMARY KEY, and insert a PRIMARY KEY for the same field as the UNIQUE KEY.

It will not fix restore where the query includes multiple create table and some of them contains ‘primary key’.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums