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

fix "field doesn't have a default values" error #2720

Merged
merged 3 commits into from
Apr 25, 2018
Merged

fix "field doesn't have a default values" error #2720

merged 3 commits into from
Apr 25, 2018

Conversation

r4sas
Copy link
Contributor

@r4sas r4sas commented Apr 25, 2018

Otherwise cron will return error: Failed to update share statistics for %username%: SQL Query failed: 1364

I using pool with prop payout, and always see that error. That will fix it.

Otherwise cron will return error: `Failed to update share statistics for %username%: SQL Query failed: 1364`
@TheSerapher
Copy link
Contributor

For this to be merged we will need to add an upgrade script for existing databases, add the new version for the DB structure and update the version file too to reflect the expected DB version. Just the base file will only help people with new setups not existing ones.

And the PR should be against development not master.

I guess you have miners without any valid shares, only invalid ones, hence the error.

@r4sas
Copy link
Contributor Author

r4sas commented Apr 25, 2018

upgrade script for existing databases

Will do

And the PR should be against development not master.

Hm... It against development branch

I guess you have miners without any valid shares, only invalid ones, hence the error.

According to updateShareStatistics function, you update values not in all fields, that's why we got error. Maybe here we also must fill pplns_valid and pplns_invalid fields with $aStats['pplns_valid'] and $aStats['pplns_invalid']?

@TheSerapher
Copy link
Contributor

My bad, mobile app doesn't show the branch. All good! I am fairly sure we dont need to fill with PPLNS data, those are already archived shares which are not required in the statistics since they were already parsed for regular payouts.

@TheSerapher
Copy link
Contributor

Did you give that upgrade script a quick test run? :)

@r4sas
Copy link
Contributor Author

r4sas commented Apr 25, 2018

Currently testing it

@r4sas
Copy link
Contributor Author

r4sas commented Apr 25, 2018

Now should work as intended

@TheSerapher
Copy link
Contributor

Thanks! I will merge into dev for people to test it.

@TheSerapher TheSerapher merged commit 8f3dafd into MPOS:development Apr 25, 2018
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

Successfully merging this pull request may close these issues.

2 participants