Database stuff. New table "thread". Changing "left join" to "inner join", removing "limit 1" at update and delete.

This commit is contained in:
Michael Vogel 2014-03-09 09:19:14 +01:00
parent 2b5345323f
commit 6b8585d48d
33 changed files with 487 additions and 444 deletions

View file

@ -111,7 +111,7 @@ function queue_run(&$argv, &$argc){
}
$r = q("SELECT `queue`.*, `contact`.`name`, `contact`.`uid` FROM `queue`
LEFT JOIN `contact` ON `queue`.`cid` = `contact`.`id`
INNER JOIN `contact` ON `queue`.`cid` = `contact`.`id`
WHERE `queue`.`created` < UTC_TIMESTAMP() - INTERVAL 3 DAY");
if($r) {
foreach($r as $rr) {