Duplicate rows in meta table, any known relations in WC?
Question
I am doing a migration from very old to current wordpress/woocommerce and while investigating the data I found out that there are more than one row for a products _stock
meta key. The same for other meta_key
s.
I found an old discussion here https://core.trac.wordpress.org/ticket/10905
Which relations (tables) utilize multiple meta values in the meta table?
Which relations break if I delete all but one of the values?
Can I safely force a UNIQUE index?
ALTER TABLE `wp_postmeta` ADD UNIQUE (
`post_id` ,
`meta_key` ,
`meta_value`
);
0
post-meta, sql, table
4 years
2019-11-03T15:08:06-05:00
2019-11-03T15:08:06-05:00 0 Answers
72 views
0
Leave an answer