From: Thomas Markwalder Date: Wed, 5 Jan 2022 16:04:35 +0000 (-0500) Subject: [#2244] Disable audits in wipe script X-Git-Tag: Kea-2.1.2~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe3905eacc8128651abccef883333d4eab6e1944;p=thirdparty%2Fkea.git [#2244] Disable audits in wipe script src/share/database/scripts/pgsql/wipe_data.sh.in Set disable audit flag to true, so delete triggers do nothing. --- diff --git a/src/share/database/scripts/pgsql/wipe_data.sh.in b/src/share/database/scripts/pgsql/wipe_data.sh.in index 267322d978..677158af43 100644 --- a/src/share/database/scripts/pgsql/wipe_data.sh.in +++ b/src/share/database/scripts/pgsql/wipe_data.sh.in @@ -58,7 +58,10 @@ fi # Delete transient data from tables. We're using delete instead # of truncate because it is much faster since our unit tests # create very little data. +# Note we disable revision auditing to avoid issues delete +# triggers. psql "$@" >/dev/null <