From d6d68cb8b08ef7b5cda5394c897ce4dc27bc3d15 Mon Sep 17 00:00:00 2001 From: Jonny Bravo Date: Sun, 21 Feb 2016 13:41:10 -0500 Subject: [PATCH] Changed shares to BIGINT data type to account for BTC having far more shares than can be handled by standard INT datatype --- sql/000_base_structure.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/000_base_structure.sql b/sql/000_base_structure.sql index 8466915b..839789eb 100644 --- a/sql/000_base_structure.sql +++ b/sql/000_base_structure.sql @@ -182,10 +182,10 @@ CREATE TABLE IF NOT EXISTS `statistics_shares` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(10) unsigned NOT NULL, `block_id` int(10) unsigned NOT NULL, - `valid` int(11) NOT NULL, - `invalid` int(11) NOT NULL DEFAULT '0', - `pplns_valid` int(11) NOT NULL, - `pplns_invalid` int(11) NOT NULL DEFAULT '0', + `valid` bigint(20) NOT NULL, + `invalid` bigint(20) NOT NULL DEFAULT '0', + `pplns_valid` bigint(20) NOT NULL, + `pplns_invalid` bigint(20) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `account_id` (`account_id`), KEY `block_id` (`block_id`)