drop the queue table which we no longer use
This commit is contained in:
parent
5cf5cbd193
commit
bbd69c1e81
2
boot.php
2
boot.php
@ -45,7 +45,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' );
|
|||||||
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
||||||
define ( 'ZOT_REVISION', 1 );
|
define ( 'ZOT_REVISION', 1 );
|
||||||
|
|
||||||
define ( 'DB_UPDATE_VERSION', 1081 );
|
define ( 'DB_UPDATE_VERSION', 1082 );
|
||||||
|
|
||||||
define ( 'EOL', '<br />' . "\r\n" );
|
define ( 'EOL', '<br />' . "\r\n" );
|
||||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||||
|
@ -775,22 +775,6 @@ CREATE TABLE IF NOT EXISTS `profile_check` (
|
|||||||
KEY `expire` (`expire`)
|
KEY `expire` (`expire`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `queue` (
|
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`cid` int(11) NOT NULL,
|
|
||||||
`network` char(32) NOT NULL,
|
|
||||||
`created` datetime NOT NULL,
|
|
||||||
`last` datetime NOT NULL,
|
|
||||||
`content` mediumtext NOT NULL,
|
|
||||||
`batch` tinyint(1) NOT NULL DEFAULT '0',
|
|
||||||
PRIMARY KEY (`id`),
|
|
||||||
KEY `cid` (`cid`),
|
|
||||||
KEY `network` (`network`),
|
|
||||||
KEY `created` (`created`),
|
|
||||||
KEY `last` (`last`),
|
|
||||||
KEY `batch` (`batch`)
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `register` (
|
CREATE TABLE IF NOT EXISTS `register` (
|
||||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`hash` char(255) NOT NULL,
|
`hash` char(255) NOT NULL,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1081 );
|
define( 'UPDATE_VERSION' , 1082 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -896,3 +896,10 @@ ADD INDEX ( `expires` ) ");
|
|||||||
return UPDATE_SUCCESS;
|
return UPDATE_SUCCESS;
|
||||||
return UPDATE_FAILED;
|
return UPDATE_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_r1081() {
|
||||||
|
$r = q("DROP TABLE `queue` ");
|
||||||
|
if($r)
|
||||||
|
return UPDATE_SUCCESS;
|
||||||
|
return UPDATE_FAILED;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user