mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
queue indexes
This commit is contained in:
parent
3783d8860c
commit
0ada550a02
4 changed files with 16 additions and 4 deletions
2
boot.php
2
boot.php
|
@ -10,7 +10,7 @@ require_once('include/nav.php');
|
||||||
define ( 'FRIENDIKA_PLATFORM', 'Free Friendika');
|
define ( 'FRIENDIKA_PLATFORM', 'Free Friendika');
|
||||||
define ( 'FRIENDIKA_VERSION', '2.3.1141' );
|
define ( 'FRIENDIKA_VERSION', '2.3.1141' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1097 );
|
define ( 'DB_UPDATE_VERSION', 1098 );
|
||||||
|
|
||||||
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' );
|
||||||
|
|
|
@ -477,7 +477,12 @@ CREATE TABLE IF NOT EXISTS `queue` (
|
||||||
`created` DATETIME NOT NULL ,
|
`created` DATETIME NOT NULL ,
|
||||||
`last` DATETIME NOT NULL ,
|
`last` DATETIME NOT NULL ,
|
||||||
`content` MEDIUMTEXT NOT NULL,
|
`content` MEDIUMTEXT NOT NULL,
|
||||||
`batch` TINYINT( 1 ) NOT NULL DEFAULT '0'
|
`batch` TINYINT( 1 ) NOT NULL DEFAULT '0',
|
||||||
|
INDEX ( `cid` ),
|
||||||
|
INDEX ( `created` ),
|
||||||
|
INDEX ( `last` ),
|
||||||
|
INDEX ( `network` ),
|
||||||
|
INDEX ( `batch` )
|
||||||
) ENGINE = MyISAM DEFAULT CHARSET=utf8;
|
) ENGINE = MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `pconfig` (
|
CREATE TABLE IF NOT EXISTS `pconfig` (
|
||||||
|
|
|
@ -784,7 +784,6 @@ function notifier_run($argv, $argc){
|
||||||
|
|
||||||
call_hooks('notifier_end',$target_item);
|
call_hooks('notifier_end',$target_item);
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
10
update.php
10
update.php
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1097 );
|
define( 'UPDATE_VERSION' , 1098 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -800,4 +800,12 @@ function update_1096() {
|
||||||
q("ALTER TABLE `item` ADD `origin` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `deleted` , ADD INDEX ( `origin` ) ");
|
q("ALTER TABLE `item` ADD `origin` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `deleted` , ADD INDEX ( `origin` ) ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1097() {
|
||||||
|
q("ALTER TABLE `queue`
|
||||||
|
ADD INDEX (`cid`),
|
||||||
|
ADD INDEX (`created`),
|
||||||
|
ADD INDEX (`last`),
|
||||||
|
ADD INDEX (`network`),
|
||||||
|
ADD INDEX (`batch`) ");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue