diff options
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 16 | ||||
-rw-r--r-- | install/update.php | 9 |
2 files changed, 8 insertions, 17 deletions
diff --git a/install/database.sql b/install/database.sql index 3a05c28ec..60e17c900 100644 --- a/install/database.sql +++ b/install/database.sql @@ -775,22 +775,6 @@ CREATE TABLE IF NOT EXISTS `profile_check` ( KEY `expire` (`expire`) ) 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` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `hash` char(255) NOT NULL, diff --git a/install/update.php b/install/update.php index e1fd8c7a4..f608075fc 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1081 ); +define( 'UPDATE_VERSION' , 1082 ); /** * @@ -896,3 +896,10 @@ ADD INDEX ( `expires` ) "); return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1081() { + $r = q("DROP TABLE `queue` "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |