]> pd.if.org Git - zpackage/commitdiff
remove foreign key pragma
authorNathan Wagner <nw@hydaspes.if.org>
Wed, 17 Oct 2018 11:04:42 +0000 (11:04 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 3 Nov 2018 12:39:52 +0000 (12:39 +0000)
The zpm shell for sqlite enables foreign keys by default, so
it isn't necessary to do it manually.

zpm-add

diff --git a/zpm-add b/zpm-add
index 6c753cf900ca8abadc2803a512d7e2c864500d28..7de51e9eb9f5322d135bcb85af375129bef79552 100755 (executable)
--- a/zpm-add
+++ b/zpm-add
@@ -176,7 +176,6 @@ for path in $*; do
        # TODO check that we have such a package,version,release
        #cat <<EOS
        zpm shell $pkgfile <<EOS
-PRAGMA foreign_keys = ON;
 begin;
 insert or replace into packagefiles (package,version,release,path,mode,mtime,username,groupname,filetype,hash,target)
 values ('$package', '$pkgver', $pkgrel, '$rpath', '$mode',$mtime, '$username','$groupname','$filetype',$hash,$target);