summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/Releases.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-08-17 11:10:21 +0200
committerYorhel <git@yorhel.nl>2019-08-17 11:10:21 +0200
commit95bc983ab656f529a5f49655592cf5f95971de30 (patch)
treeeb54f2b2b74f0323fee329f8a362d9adbd63727f /lib/VNDB/DB/Releases.pm
parent85c81bd7fea2f8bb3d1b08330563f89bd10e8293 (diff)
Add GOG.com links to releases
Diffstat (limited to 'lib/VNDB/DB/Releases.pm')
-rw-r--r--lib/VNDB/DB/Releases.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/DB/Releases.pm b/lib/VNDB/DB/Releases.pm
index 1a500ca9..66056704 100644
--- a/lib/VNDB/DB/Releases.pm
+++ b/lib/VNDB/DB/Releases.pm
@@ -85,7 +85,7 @@ sub dbReleaseGet {
);
my @select = (
- qw|r.id r.title r.original r.website r.l_steam r.l_dlsite r.l_dlsiteen r.released r.minage r.type r.patch|,
+ qw|r.id r.title r.original r.website r.l_steam r.l_dlsite r.l_dlsiteen r.l_gog r.released r.minage r.type r.patch|,
$o{what} =~ /extended/ ? qw|r.notes r.catalog r.gtin r.resolution r.voiced r.freeware r.doujin r.uncensored r.ani_story r.ani_ero r.engine r.hidden r.locked| : (),
$o{pid} ? ('rp.developer', 'rp.publisher') : (),
);
@@ -123,7 +123,7 @@ sub dbReleaseGetRev {
$o{rev} ||= $self->dbRow('SELECT MAX(rev) AS rev FROM changes WHERE type = \'r\' AND itemid = ?', $o{id})->{rev};
- my $select = 'c.itemid AS id, r.title, r.original, r.website, r.l_steam, r.l_dlsite, r.l_dlsiteen, r.released, r.minage, r.type, r.patch';
+ my $select = 'c.itemid AS id, r.title, r.original, r.website, r.l_steam, r.l_dlsite, r.l_dlsiteen, r.l_gog, r.released, r.minage, r.type, r.patch';
$select .= ', r.notes, r.catalog, r.gtin, r.resolution, r.voiced, r.freeware, r.doujin, r.uncensored, r.ani_story, r.ani_ero, r.engine, ro.hidden, ro.locked' if $o{what} =~ /extended/;
$select .= ', extract(\'epoch\' from c.added) as added, c.requester, c.comments, u.username, c.rev, c.ihid, c.ilock';
$select .= ', c.id AS cid, NOT EXISTS(SELECT 1 FROM changes c2 WHERE c2.type = c.type AND c2.itemid = c.itemid AND c2.rev = c.rev+1) AS lastrev';
@@ -214,7 +214,7 @@ sub dbReleaseRevisionInsert {
my($self, $o) = @_;
my %set = map exists($o->{$_}) ? ("$_ = ?", $o->{$_}) : (),
- qw|title original gtin catalog website l_steam l_dlsite l_dlsiteen released notes minage type
+ qw|title original gtin catalog website l_steam l_dlsite l_dlsiteen l_gog released notes minage type
patch resolution voiced freeware doujin uncensored ani_story ani_ero engine|;
$self->dbExec('UPDATE edit_releases !H', \%set) if keys %set;