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

Otherwise cron will return error: `Failed to update share statistics for %username%: SQL Query failed: 1364`
This commit is contained in:
R4SAS 2018-04-25 05:55:47 +03:00 committed by GitHub
parent 3b232951be
commit cdba6ce722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,9 +182,9 @@ 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` bigint(20) NOT NULL,
`valid` bigint(20) NOT NULL DEFAULT '0',
`invalid` bigint(20) NOT NULL DEFAULT '0',
`pplns_valid` bigint(20) NOT NULL,
`pplns_valid` bigint(20) NOT NULL DEFAULT '0',
`pplns_invalid` bigint(20) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `account_id` (`account_id`),