diff --git a/lib/DB/patches/0110~releases.sql b/lib/DB/patches/0110~releases.sql new file mode 100644 index 000000000..99678719b --- /dev/null +++ b/lib/DB/patches/0110~releases.sql @@ -0,0 +1,2 @@ +ALTER TABLE releases ADD INDEX ix_releases_preid_searchname (preID, searchname); +UPDATE `tmux` SET `value` = '110' WHERE `setting` = 'sqlpatch'; \ No newline at end of file diff --git a/lib/copy_this/www/lib/TmuxOutput.php b/lib/copy_this/www/lib/TmuxOutput.php index 22939da31..0cd3dd86b 100644 --- a/lib/copy_this/www/lib/TmuxOutput.php +++ b/lib/copy_this/www/lib/TmuxOutput.php @@ -117,7 +117,7 @@ class TmuxOutput extends Tmux $buffer = ''; $state = ($this->runVar['settings']['is_running'] == 1) ? 'Running' : 'Disabled'; //$version = $this->_tvers . 'r' . $this->_vers; - $tversion = '0.5r01130'; + $tversion = '0.5r01131'; $buffer .= sprintf($this->tmpMasks[2], "Monitor $state v$tversion @ $this->_tvers [" . $this->_vers ."]: ", diff --git a/lib/copy_this/www/lib/predb.php b/lib/copy_this/www/lib/predb.php index 5fa656e91..ed7735a1b 100644 --- a/lib/copy_this/www/lib/predb.php +++ b/lib/copy_this/www/lib/predb.php @@ -93,7 +93,7 @@ class PreDB $dirname = empty($dirname) ? '' : sprintf('WHERE dirname LIKE %s', $db->escapeString('%'.$dirname.'%')); $category = empty($category) ? '' : sprintf((empty($dirname) ? 'WHERE' : ' AND')." category = %s", $db->escapeString($category)); - $sql = sprintf('SELECT predb.*, r.guid FROM predb left outer join releases r on r.preID = predb.ID %s %s ORDER BY ctime DESC LIMIT %d,%d', $dirname, $category, $start, $num); + $sql = sprintf('SELECT p.*, r.guid FROM predb p left outer join releases r on p.ID = r.preID %s %s ORDER BY ctime DESC LIMIT %d,%d', $dirname, $category, $start, $num); return $db->query($sql, true); } diff --git a/start.php b/start.php index a78aaaf29..cb2c39da3 100644 --- a/start.php +++ b/start.php @@ -35,7 +35,7 @@ if (count($nntpkill) === 0) { } // Check database patch version -if ($patch < 109) { +if ($patch < 110) { exit($c->error("\nYour database is not up to date. Please update.\nphp ${DIR}lib/DB/patchDB.php\n")); }