mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Rename the CommentNotify table to PackageNotifications
As a preparatory step to adding support for package notifications on events other than comments, rename the database table accordingly. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
daee000604
commit
3412de21d3
8 changed files with 27 additions and 21 deletions
|
@ -716,7 +716,7 @@ function pkg_search_page($SID="") {
|
|||
/* Build the package search query. */
|
||||
$q_select = "SELECT ";
|
||||
if ($SID) {
|
||||
$q_select .= "CommentNotify.UserID AS Notify,
|
||||
$q_select .= "PackageNotifications.UserID AS Notify,
|
||||
PackageVotes.UsersID AS Voted, ";
|
||||
}
|
||||
$q_select .= "Users.Username AS Maintainer,
|
||||
|
@ -731,8 +731,8 @@ function pkg_search_page($SID="") {
|
|||
/* This is not needed for the total row count query. */
|
||||
$q_from_extra = "LEFT JOIN PackageVotes
|
||||
ON (PackageBases.ID = PackageVotes.PackageBaseID AND PackageVotes.UsersID = $myuid)
|
||||
LEFT JOIN CommentNotify
|
||||
ON (PackageBases.ID = CommentNotify.PackageBaseID AND CommentNotify.UserID = $myuid) ";
|
||||
LEFT JOIN PackageNotifications
|
||||
ON (PackageBases.ID = PackageNotifications.PackageBaseID AND PackageNotifications.UserID = $myuid) ";
|
||||
} else {
|
||||
$q_from_extra = "";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue