From 96c9a4ae08416d1cfb1bd3791863878b3068cf16 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 3 Jun 2013 10:59:12 +0200 Subject: [PATCH] Renamed workers table to pool_worker * This will fix issues with mining pools using the default name * Back in line with default configurations for most mining pool software * Fixes #93 --- public/include/classes/worker.class.php | 2 +- sql/mmcfe_ng_structure.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/include/classes/worker.class.php b/public/include/classes/worker.class.php index 0637609a..5a5c19c4 100644 --- a/public/include/classes/worker.class.php +++ b/public/include/classes/worker.class.php @@ -6,7 +6,7 @@ if (!defined('SECURITY')) class Worker { private $sError = ''; - private $table = 'workers'; + private $table = 'pool_worker'; public function __construct($debug, $mysqli, $user, $share, $config) { $this->debug = $debug; diff --git a/sql/mmcfe_ng_structure.sql b/sql/mmcfe_ng_structure.sql index 1ac32501..4b6bf27d 100644 --- a/sql/mmcfe_ng_structure.sql +++ b/sql/mmcfe_ng_structure.sql @@ -161,10 +161,10 @@ CREATE TABLE IF NOT EXISTS `transactions` ( -- -------------------------------------------------------- -- --- Table structure for table `workers` +-- Table structure for table `pool_worker` -- -CREATE TABLE IF NOT EXISTS `workers` ( +CREATE TABLE IF NOT EXISTS `pool_worker` ( `id` int(255) NOT NULL AUTO_INCREMENT, `account_id` int(255) NOT NULL, `username` char(50) DEFAULT NULL,