I'd like to migrate votes from another plugin to wpdiscuz.
The old votes are stored in this table
CREATE TABLE `xre2_comment_vote` ( `comment_vote_id` bigint(20) UNSIGNED NOT NULL, `post_id` bigint(20) UNSIGNED NOT NULL, `comment_id` bigint(20) UNSIGNED NOT NULL, `user` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL, -- random uuid `vote` tinyint(1) NOT NULL -- '1' is up vote, '-1' is down vote ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
Example of a row in this table:
comment_vote_id;post_id;comment_id;user;vote 1;1037;50;28928512-88f8-4ac6-830a-db94c175c2c5;1
I migrated the votes using this query:
INSERT INTO `xre2_wc_users_voted` (user_id, comment_id, vote_type, is_guest, post_id, date) SELECT SUBSTR(user, 1, 32), comment_id, vote, '1', post_id, UNIX_TIMESTAMP() FROM xre2_comment_vote;
After performing this query the table xre2_wc_users_voted is filled with votes.
I know that the resulting user id is not "valid" but I'd assume it to be sufficient so that no votes are lost.
But for any reason the migrated votes are missing in the comments section of a post. Only the "new" votes (which have been voted by wpdiscuz) are counted.
What am I missing?


