From 5aae168d19894ca8bb3541a129466508daa2fe6d 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 6f475060..fc31343d 100644 --- a/sql/000_base_structure.sql +++ b/sql/000_base_structure.sql @@ -81,6 +81,7 @@ CREATE TABLE IF NOT EXISTS `pool_worker` ( `username` char(50) DEFAULT NULL, `password` char(255) DEFAULT NULL, `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`) @@ -102,6 +103,7 @@ CREATE TABLE IF NOT EXISTS `shares` ( `reason` varchar(50) DEFAULT NULL, `solution` varchar(257) NOT NULL, `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`), @@ -117,6 +119,7 @@ CREATE TABLE IF NOT EXISTS `shares_archive` ( `upstream_result` enum('Y','N') DEFAULT NULL, `block_id` int(10) unsigned NOT NULL, `time` datetime NOT NULL, + `difficulty` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `share_id` (`share_id`), KEY `time` (`time`)