From ae32ab429feba05fc4be3160dd41c81c50f778d0 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 12 May 2013 16:53:24 +0200 Subject: [PATCH] moved workers table, pushpool needs to be configured to use this instead --- sql/mmcfe_ng_structure.sql | 45 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/sql/mmcfe_ng_structure.sql b/sql/mmcfe_ng_structure.sql index 7a8d27da..76ec1899 100644 --- a/sql/mmcfe_ng_structure.sql +++ b/sql/mmcfe_ng_structure.sql @@ -3,7 +3,7 @@ -- http://www.phpmyadmin.net -- -- Host: localhost --- Erstellungszeit: 12. Mai 2013 um 00:20 +-- Erstellungszeit: 12. Mai 2013 um 16:52 -- Server Version: 5.5.31-0ubuntu0.13.04.1 -- PHP-Version: 5.4.9-4ubuntu2 @@ -65,23 +65,6 @@ CREATE TABLE IF NOT EXISTS `blocks` ( -- -------------------------------------------------------- --- --- Tabellenstruktur für Tabelle `pool_worker` --- - -CREATE TABLE IF NOT EXISTS `pool_worker` ( - `id` int(255) NOT NULL AUTO_INCREMENT, - `associatedUserId` int(255) NOT NULL, - `username` char(50) DEFAULT NULL, - `password` char(255) DEFAULT NULL, - `active` tinyint(4) DEFAULT '0', - `hashrate` int(11) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `p_username` (`username`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - --- -------------------------------------------------------- - -- -- Tabellenstruktur für Tabelle `settings` -- @@ -156,10 +139,10 @@ CREATE TABLE IF NOT EXISTS `statistics_shares` ( CREATE TABLE IF NOT EXISTS `transactions` ( `id` int(255) NOT NULL AUTO_INCREMENT, `account_id` int(255) unsigned NOT NULL, - `type` varchar(40) DEFAULT NULL, - `sendAddress` varchar(255) DEFAULT NULL, - `amount` varchar(40) DEFAULT '0', - `feeAmount` varchar(40) DEFAULT '0', + `type` enum('Credit','Debit_MP','Debit_AP') DEFAULT NULL, + `coin_address` varchar(255) DEFAULT NULL, + `amount` double DEFAULT '0', + `fee_amount` float DEFAULT '0', `block_id` int(255) DEFAULT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), @@ -168,6 +151,24 @@ CREATE TABLE IF NOT EXISTS `transactions` ( KEY `type` (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +-- -------------------------------------------------------- + +-- +-- Tabellenstruktur für Tabelle `workers` +-- + +CREATE TABLE IF NOT EXISTS `workers` ( + `id` int(255) NOT NULL AUTO_INCREMENT, + `account_id` int(255) NOT NULL, + `username` char(50) DEFAULT NULL, + `password` char(255) DEFAULT NULL, + `active` tinyint(4) DEFAULT '0', + `hashrate` int(11) DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `username` (`username`), + KEY `account_id` (`account_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;