[wp-hackers] Duplicate key=value pairs in wp_postmeta
scribu
scribu at gmail.com
Thu Feb 26 12:11:49 GMT 2009
I was trying to delete duplicate custom fields from postmeta. A duplica
custom field means that for the same post you have:
key = value
key = value
I think a unique(post_id, meta_key,meta_value) constraint would a good way
to avoid this problem in the future, as I can't see any practical use for
having the same custom field and value more than once for the same post.
--
http://scribu.net
More information about the wp-hackers
mailing list