Merge pull request #1882 from MPOS/blocks-share-id-bigint

[SQL] Updated blocks table share_id to bigint
This commit is contained in:
Sebastian Grewe 2014-03-04 10:24:29 +01:00
commit 7d20d842fd
3 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
define('MPOS_VERSION', '0.0.4');
define('DB_VERSION', '0.0.6');
define('DB_VERSION', '0.0.7');
define('CONFIG_VERSION', '0.0.7');
// Fetch installed database version

View File

@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS `blocks` (
`account_id` int(255) unsigned DEFAULT NULL,
`worker_name` varchar(50) DEFAULT 'unknown',
`shares` int(255) unsigned DEFAULT NULL,
`share_id` int(255) DEFAULT NULL,
`share_id` bigint(30) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `height` (`height`,`blockhash`),
KEY `time` (`time`)
@ -133,7 +133,7 @@ CREATE TABLE IF NOT EXISTS `settings` (
UNIQUE KEY `setting` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `settings` (`name`, `value`) VALUES ('DB_VERSION', '0.0.6');
INSERT INTO `settings` (`name`, `value`) VALUES ('DB_VERSION', '0.0.7');
CREATE TABLE IF NOT EXISTS `shares` (
`id` bigint(30) NOT NULL AUTO_INCREMENT,

View File

@ -0,0 +1,2 @@
ALTER TABLE `blocks` CHANGE `share_id` `share_id` BIGINT( 30 ) NULL DEFAULT NULL ;
INSERT INTO `settings` (`name`, `value`) VALUES ('DB_VERSION', '0.0.7') ON DUPLICATE KEY UPDATE `value` = '0.0.7';