Skip to content

implement low-diff shares counting (#2718 #2726) #2727

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

Merged
merged 1 commit into from
May 11, 2018

Conversation

r4sas
Copy link
Contributor

@r4sas r4sas commented May 11, 2018

No description provided.

@TheSerapher
Copy link
Contributor

Since it's the development branch I think we should merge this without incrementing to DB version 1.0.4 - Those who have to run the upgrade can do it manually again (re-set DB version to 1.0.2 and then run the script) or run the ALTER TABLE themselves.

@@ -11,7 +11,7 @@ function run_103() {
// Upgrade specific variables
$aSql[] = "UPDATE `statistics_shares` SET `valid` = '0' WHERE `valid` IS NULL;";
$aSql[] = "UPDATE `statistics_shares` SET `pplns_valid` = '0' WHERE `pplns_valid` IS NULL;";
$aSql[] = "ALTER TABLE `statistics_shares` CHANGE `valid` `valid` BIGINT(20) NOT NULL DEFAULT '0', CHANGE `pplns_valid` `pplns_valid` BIGINT(20) NOT NULL DEFAULT '0';";
$aSql[] = "ALTER TABLE `statistics_shares` CHANGE `valid` `valid` FLOAT NOT NULL DEFAULT '0', CHANGE `invalid` `invalid` FLOAT NOT NULL DEFAULT '0', CHANGE `pplns_valid` `pplns_valid` FLOAT NOT NULL DEFAULT '0', CHANGE `pplns_invalid` `pplns_invalid` FLOAT NOT NULL DEFAULT '0';";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you change the existing schema update for 1.0.3 users that have already upgraded using development branch will not be able to (easily) upgrade to this schema. Personally, I am fine with that. Anyone being on DEV branch should know how to reset their DB version to trigger this run again. It shouldn't conflict with any existing MPOS install on development.

@TheSerapher TheSerapher merged commit 363e2be into MPOS:development May 11, 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