Merge pull request #27 from TheSerapher/next

Next to Master: Table Structure
This commit is contained in:
Sebastian Grewe 2013-05-16 12:28:34 -07:00
commit 52a8266bfe

View File

@ -1,11 +1,11 @@
-- phpMyAdmin SQL Dump -- phpMyAdmin SQL Dump
-- version 3.5.8.1deb1 -- version 3.5.1
-- http://www.phpmyadmin.net -- http://www.phpmyadmin.net
-- --
-- Host: localhost -- Host: localhost
-- Erstellungszeit: 14. Mai 2013 um 16:12 -- Generation Time: May 16, 2013 at 09:25 PM
-- Server Version: 5.5.31-0ubuntu0.13.04.1 -- Server version: 5.5.31-log
-- PHP-Version: 5.4.9-4ubuntu2 -- PHP Version: 5.4.15
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00"; SET time_zone = "+00:00";
@ -17,13 +17,13 @@ SET time_zone = "+00:00";
/*!40101 SET NAMES utf8 */; /*!40101 SET NAMES utf8 */;
-- --
-- Datenbank: `mmcfe_ng_db` -- Database: `mmcfe_ng_db`
-- --
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `accounts` -- Table structure for table `accounts`
-- --
CREATE TABLE IF NOT EXISTS `accounts` ( CREATE TABLE IF NOT EXISTS `accounts` (
@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS `accounts` (
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `blocks` -- Table structure for table `blocks`
-- --
CREATE TABLE IF NOT EXISTS `blocks` ( CREATE TABLE IF NOT EXISTS `blocks` (
@ -63,12 +63,12 @@ CREATE TABLE IF NOT EXISTS `blocks` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `height` (`height`,`blockhash`), UNIQUE KEY `height` (`height`,`blockhash`),
KEY `time` (`time`) KEY `time` (`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Discovered blocks persisted from Litecoin Service'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Discovered blocks persisted from Litecoin Service';
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `settings` -- Table structure for table `settings`
-- --
CREATE TABLE IF NOT EXISTS `settings` ( CREATE TABLE IF NOT EXISTS `settings` (
@ -80,7 +80,7 @@ CREATE TABLE IF NOT EXISTS `settings` (
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `shares` -- Table structure for table `shares`
-- --
CREATE TABLE IF NOT EXISTS `shares` ( CREATE TABLE IF NOT EXISTS `shares` (
@ -95,13 +95,14 @@ CREATE TABLE IF NOT EXISTS `shares` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `time` (`time`), KEY `time` (`time`),
KEY `upstream_result` (`upstream_result`), KEY `upstream_result` (`upstream_result`),
KEY `our_result` (`our_result`) KEY `our_result` (`our_result`),
KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `shares_archive` -- Table structure for table `shares_archive`
-- --
CREATE TABLE IF NOT EXISTS `shares_archive` ( CREATE TABLE IF NOT EXISTS `shares_archive` (
@ -111,16 +112,15 @@ CREATE TABLE IF NOT EXISTS `shares_archive` (
`our_result` enum('Y','N') DEFAULT NULL, `our_result` enum('Y','N') DEFAULT NULL,
`upstream_result` enum('Y','N') DEFAULT NULL, `upstream_result` enum('Y','N') DEFAULT NULL,
`block_id` int(10) unsigned NOT NULL, `block_id` int(10) unsigned NOT NULL,
`time` datetime NOT NULL, `time` datetime DEFAULT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `share_id` (`share_id`), UNIQUE KEY `share_id` (`share_id`)
KEY `time` (`time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Archive shares for potential later debugging purposes';
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Archive shares for potential later debugging purposes';
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `statistics_shares` -- Table structure for table `statistics_shares`
-- --
CREATE TABLE IF NOT EXISTS `statistics_shares` ( CREATE TABLE IF NOT EXISTS `statistics_shares` (
@ -132,12 +132,12 @@ CREATE TABLE IF NOT EXISTS `statistics_shares` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `account_id` (`account_id`), KEY `account_id` (`account_id`),
KEY `block_id` (`block_id`) KEY `block_id` (`block_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `transactions` -- Table structure for table `transactions`
-- --
CREATE TABLE IF NOT EXISTS `transactions` ( CREATE TABLE IF NOT EXISTS `transactions` (
@ -153,12 +153,12 @@ CREATE TABLE IF NOT EXISTS `transactions` (
KEY `block_id` (`block_id`), KEY `block_id` (`block_id`),
KEY `account_id` (`account_id`), KEY `account_id` (`account_id`),
KEY `type` (`type`) KEY `type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `workers` -- Table structure for table `workers`
-- --
CREATE TABLE IF NOT EXISTS `workers` ( CREATE TABLE IF NOT EXISTS `workers` (
@ -166,7 +166,6 @@ CREATE TABLE IF NOT EXISTS `workers` (
`account_id` int(255) NOT NULL, `account_id` int(255) NOT NULL,
`username` char(50) DEFAULT NULL, `username` char(50) DEFAULT NULL,
`password` char(255) DEFAULT NULL, `password` char(255) DEFAULT NULL,
`active` tinyint(4) DEFAULT '0',
`hashrate` int(11) DEFAULT NULL, `hashrate` int(11) DEFAULT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`), UNIQUE KEY `username` (`username`),