mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
aurjson: Add a PackageBaseID field
This is useful to tools that automatically generate requests to orphan, delete or merge packages. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
86de2e5628
commit
d909ffcb17
1 changed files with 4 additions and 2 deletions
|
@ -17,6 +17,7 @@ class AurJSON {
|
|||
);
|
||||
private static $fields_v1 = array(
|
||||
'Packages.ID', 'Packages.Name',
|
||||
'PackageBases.ID AS PackageBaseID',
|
||||
'PackageBases.Name AS PackageBase', 'Version', 'CategoryID',
|
||||
'Description', 'URL', 'NumVotes', 'OutOfDateTS AS OutOfDate',
|
||||
'Users.UserName AS Maintainer',
|
||||
|
@ -25,14 +26,15 @@ class AurJSON {
|
|||
);
|
||||
private static $fields_v2 = array(
|
||||
'Packages.ID', 'Packages.Name',
|
||||
'PackageBases.ID AS PackageBaseID',
|
||||
'PackageBases.Name AS PackageBase', 'Version', 'CategoryID',
|
||||
'Description', 'URL', 'NumVotes', 'OutOfDateTS AS OutOfDate',
|
||||
'Users.UserName AS Maintainer',
|
||||
'SubmittedTS AS FirstSubmitted', 'ModifiedTS AS LastModified'
|
||||
);
|
||||
private static $numeric_fields = array(
|
||||
'ID', 'CategoryID', 'NumVotes', 'OutOfDate', 'FirstSubmitted',
|
||||
'LastModified'
|
||||
'ID', 'PackageBaseID', 'CategoryID', 'NumVotes', 'OutOfDate',
|
||||
'FirstSubmitted', 'LastModified'
|
||||
);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue