summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2019-07-30 19:46:58 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2019-07-30 19:51:27 +0200
commit7f008b0bc4610dad15c6dfaaf724d4d5bad84c55 (patch)
treec5cea20b490bef76d69befb91bd6e7bf1361dc5f /web
parent23fc96b45bc93464a62b0bc40f2143e540397787 (diff)
downloadaur-7f008b0bc4610dad15c6dfaaf724d4d5bad84c55.tar.gz
aur-7f008b0bc4610dad15c6dfaaf724d4d5bad84c55.tar.xz
pkgreqfuncs: Don't leave out non-default ClosureComment column
Since 09cb61a (schema: Remove invalid default values for TEXT columns, 2017-04-15) the PackageRequests.ClosureComment field no longer has a default value. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgreqfuncs.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php
index b8be7e54..079df38c 100644
--- a/web/lib/pkgreqfuncs.inc.php
+++ b/web/lib/pkgreqfuncs.inc.php
@@ -165,10 +165,10 @@ function pkgreq_file($ids, $type, $merge_into, $comments) {
$q = "INSERT INTO PackageRequests ";
$q.= "(ReqTypeID, PackageBaseID, PackageBaseName, MergeBaseName, ";
- $q.= "UsersID, Comments, RequestTS) VALUES (" . $type_id . ", ";
+ $q.= "UsersID, Comments, ClosureComment, RequestTS) VALUES (" . $type_id . ", ";
$q.= $base_id . ", " . $dbh->quote($pkgbase_name) . ", ";
$q.= $dbh->quote($merge_into) . ", " . $uid . ", ";
- $q.= $dbh->quote($comments) . ", " . strval(time()) . ")";
+ $q.= $dbh->quote($comments) . ", '', " . strval(time()) . ")";
$dbh->exec($q);
$request_id = $dbh->lastInsertId();