Skip to content

Commit d6d68cb

Browse files
Changed shares to BIGINT data type to account for BTC having far more shares than can be handled by standard INT datatype
1 parent 1cd2f63 commit d6d68cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/000_base_structure.sql

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ CREATE TABLE IF NOT EXISTS `statistics_shares` (
182182
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
183183
`account_id` int(10) unsigned NOT NULL,
184184
`block_id` int(10) unsigned NOT NULL,
185-
`valid` int(11) NOT NULL,
186-
`invalid` int(11) NOT NULL DEFAULT '0',
187-
`pplns_valid` int(11) NOT NULL,
188-
`pplns_invalid` int(11) NOT NULL DEFAULT '0',
185+
`valid` bigint(20) NOT NULL,
186+
`invalid` bigint(20) NOT NULL DEFAULT '0',
187+
`pplns_valid` bigint(20) NOT NULL,
188+
`pplns_invalid` bigint(20) NOT NULL DEFAULT '0',
189189
PRIMARY KEY (`id`),
190190
KEY `account_id` (`account_id`),
191191
KEY `block_id` (`block_id`)

0 commit comments

Comments
 (0)