diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2017-04-24 21:17:29 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-04-25 07:00:53 +0200 |
commit | dec9077339b4cb280430a98204df97ca84bac784 (patch) | |
tree | 5bf1c9ec2152793035612a1dc4367fa3d77aecbc | |
parent | f4e2d143adca93b6ebba051e5f1c3e97266bb747 (diff) | |
download | aur-dec9077339b4cb280430a98204df97ca84bac784.tar.gz aur-dec9077339b4cb280430a98204df97ca84bac784.tar.xz |
Initialize PackageRequests.{Comments,ClosureComment}
Since commit 09cb61a (schema: Remove invalid default values for TEXT
columns, 2017-04-15), the PackageRequests.Comments and
PackageRequests.ClosureComment fields no longer have a default value.
Initialize these fields explicitly whenever a new row is added to the
PackageRequests table.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rwxr-xr-x | test/t1200-git-serve.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/t1200-git-serve.sh b/test/t1200-git-serve.sh index 07383aff..038a7989 100755 --- a/test/t1200-git-serve.sh +++ b/test/t1200-git-serve.sh @@ -353,9 +353,9 @@ test_expect_success "Check whether package requests are closed when disowning." SSH_ORIGINAL_COMMAND="adopt foobar" AUR_USER=user AUR_PRIVILEGED=0 \ "$GIT_SERVE" 2>&1 && cat <<-EOD | sqlite3 aur.db && - INSERT INTO PackageRequests (ID, ReqTypeID, PackageBaseID, PackageBaseName, UsersID) VALUES (1, 2, 3, "foobar", 4); - INSERT INTO PackageRequests (ID, ReqTypeID, PackageBaseID, PackageBaseName, UsersID) VALUES (2, 3, 3, "foobar", 5); - INSERT INTO PackageRequests (ID, ReqTypeID, PackageBaseID, PackageBaseName, UsersID) VALUES (3, 2, 2, "foobar2", 6); + INSERT INTO PackageRequests (ID, ReqTypeID, PackageBaseID, PackageBaseName, UsersID, Comments, ClosureComment) VALUES (1, 2, 3, "foobar", 4, "", ""); + INSERT INTO PackageRequests (ID, ReqTypeID, PackageBaseID, PackageBaseName, UsersID, Comments, ClosureComment) VALUES (2, 3, 3, "foobar", 5, "", ""); + INSERT INTO PackageRequests (ID, ReqTypeID, PackageBaseID, PackageBaseName, UsersID, Comments, ClosureComment) VALUES (3, 2, 2, "foobar2", 6, "", ""); EOD >sendmail.out && SSH_ORIGINAL_COMMAND="disown foobar" AUR_USER=user AUR_PRIVILEGED=0 \ |