The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

Importing Likes

5 Posts
2 Users
0 Reactions
1,530 Views
Posts: 47
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@aaronmckeon)
Trusted Member
Joined: 4 years ago
[#3294]

I am migrating data from another website and would like to import comment likes.  Can anybody tell me how likes are stored in the database?  It appears there are two meta fields that get attached to each comment - wpdiscuz_votes_seperate and wpdiscuz_votes.  I'm assuming wpdiscuz_votes is just a cumulative count of all likes.  However, I'm unclear on how best to build the wpdiscuz_votes_seperate value for each comment.

In the website I am migrating data from, I have a table with a row that contains a user_id and post_id for each like.  We don't use dislikes.  How should I map this over to wpDiscuz?  Thanks for any help!

- Aaron


4 Replies
Asti
Posts: 8225
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @aaronmckeon,

You should migrate both wpdiscuz_votes_seperate and wpdiscuz_votes. Also, please migrate the whole wp_wc_users_voted table as well. 


Reply
1 Reply
(@aaronmckeon)
Joined: 4 years ago

Trusted Member
Posts: 47
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@asti Thanks, although my question isn't so much what to migrate.  I'm not using wpDiscuz in the old website.  We were using ULike.  The data is there, but it needs to be mapped to wpDiscuz.  So, I guess I'm asking how you build those three fields you mentioned.  For example, wpdiscuz_votes looks like a simple numerical total votes, but wpdiscuz_votes_seperate looks like some sort of array that I will need to recreate for each post.  Any guidance would be appreciated.


Reply
Asti
Posts: 8225
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

Thank you for clarification aaronmckeon,

I'm really sorry, but there isn't an easy solution we can post here. 

Currently, we have plugin customization and custom addon development services at the gVectors Team. They can assess the work and create it for you. Just contact us via sales[at]gvectors.com email address and send a list of requirements you'd like to have.


Reply
1 Reply
(@aaronmckeon)
Joined: 4 years ago

Trusted Member
Posts: 47
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@asti Thanks - I just reached out to them.


Reply