From 528c7ee70810d0e088f0e9ddddc4d2194530a046 Mon Sep 17 00:00:00 2001 From: obigal Date: Tue, 2 Jul 2013 14:58:44 -0400 Subject: [PATCH] Update mmcfe_ng_structure.sql --- sql/000_base_structure.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/000_base_structure.sql b/sql/000_base_structure.sql index 487a3d07..8749c578 100644 --- a/sql/000_base_structure.sql +++ b/sql/000_base_structure.sql @@ -82,6 +82,7 @@ CREATE TABLE IF NOT EXISTS `pool_worker` ( `password` char(255) DEFAULT NULL, `difficulty` float NOT NULL DEFAULT '0', `monitor` tinyint(1) NOT NULL DEFAULT '0', + `difficulty` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`), KEY `account_id` (`account_id`) @@ -104,6 +105,7 @@ CREATE TABLE IF NOT EXISTS `shares` ( `solution` varchar(257) NOT NULL, `difficulty` float NOT NULL DEFAULT '0', `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + `difficulty` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `time` (`time`), KEY `upstream_result` (`upstream_result`), @@ -120,6 +122,7 @@ CREATE TABLE IF NOT EXISTS `shares_archive` ( `block_id` int(10) unsigned NOT NULL, `difficulty` float NOT NULL DEFAULT '0', `time` datetime NOT NULL, + `difficulty` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `share_id` (`share_id`), KEY `time` (`time`)