Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normal-old point values not copying to normal type #678

Open
JamesRussellCGPS opened this issue Aug 20, 2019 · 0 comments
Open

Normal-old point values not copying to normal type #678

JamesRussellCGPS opened this issue Aug 20, 2019 · 0 comments

Comments

@JamesRussellCGPS
Copy link

JamesRussellCGPS commented Aug 20, 2019

After updating to 3.0 and changing from meta to data as prescribed, point values are not transferring and not showing in badges created previously. This also is showing up as zero in badge edit mode in the points section.

Steps to Reproduce

  1. To find old points data in MySQL:
    SELECT u.ID, u.display_name, u.user_email, p.post_date, pm.meta_value FROM wp_posts p JOIN wp_users u on u.ID = p.post_author JOIN wp_Postmeta pm on pm.post_id = p.id WHERE pm.meta_key = "_badgeos_awarded_points"

2. Compare to
SELECT * FROM wp_badgeos_achievements

  1. Find all old point values:
    SELECT p.ID, p.post_title, p.post_content, pm.meta_key, pm.meta_value FROM wp_posts p JOIN wp_postmeta pm on p.ID = pm.post_id WHERE pm.meta_key = "_badgeos_points"

Actual result:
Got zeros for any new badges achieved so far.

Expected result:
Get old point values for new badges achieved.

Product Versions

  • BadgeOS: 3.0
  • WordPress: 5.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant