Commit 7f008b0b authored by Johannes Löthberg's avatar Johannes Löthberg Committed by Lukas Fleischer
Browse files

pkgreqfuncs: Don't leave out non-default ClosureComment column

Since 09cb61ab

 (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's avatarJohannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 23fc96b4
......@@ -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();
......
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