Commit d909ffcb authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

aurjson: Add a PackageBaseID field



This is useful to tools that automatically generate requests to orphan,
delete or merge packages.

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 86de2e56
......@@ -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'
);
/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment