Merge pull request #12010 from woocommerce/fix-sessions-table-primary-key
Fixed woocommerce_sessions primary key
This commit is contained in:
commit
c4e11a45a1
|
@ -443,8 +443,8 @@ CREATE TABLE {$wpdb->prefix}woocommerce_sessions (
|
||||||
session_key char(32) NOT NULL,
|
session_key char(32) NOT NULL,
|
||||||
session_value longtext NOT NULL,
|
session_value longtext NOT NULL,
|
||||||
session_expiry bigint(20) NOT NULL,
|
session_expiry bigint(20) NOT NULL,
|
||||||
UNIQUE KEY session_id (session_id),
|
PRIMARY KEY (session_key),
|
||||||
PRIMARY KEY (session_key)
|
UNIQUE KEY session_id (session_id)
|
||||||
) $collate;
|
) $collate;
|
||||||
CREATE TABLE {$wpdb->prefix}woocommerce_api_keys (
|
CREATE TABLE {$wpdb->prefix}woocommerce_api_keys (
|
||||||
key_id bigint(20) NOT NULL auto_increment,
|
key_id bigint(20) NOT NULL auto_increment,
|
||||||
|
|
Loading…
Reference in New Issue