From 6fabfe6685b851a93de09a8e9053271b7bbdb68e Mon Sep 17 00:00:00 2001 From: Michel Pelletier Date: Tue, 13 Dec 2022 07:04:44 -0800 Subject: [PATCH] add alter table back into event trigger for mask update. --- META.json | 4 ++-- pgsodium.control | 2 +- sql/pgsodium--3.1.1--3.1.2.sql | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 sql/pgsodium--3.1.1--3.1.2.sql diff --git a/META.json b/META.json index a1de7bc..cbcfaff 100644 --- a/META.json +++ b/META.json @@ -2,7 +2,7 @@ "name": "pgsodium", "abstract": "Postgres extension for libsodium functions", "description": "pgsodium is a PostgreSQL extension that exposes modern libsodium based cryptographic functions to SQL.", - "version": "3.1.1", + "version": "3.1.2", "maintainer": [ "Michel Pelletier " ], @@ -13,7 +13,7 @@ "abstract": "Postgres extension for libsodium functions", "file": "src/pgsodium.h", "docfile": "README.md", - "version": "3.1.1" + "version": "3.1.2" } }, "prereqs": { diff --git a/pgsodium.control b/pgsodium.control index 04dda22..3b47165 100644 --- a/pgsodium.control +++ b/pgsodium.control @@ -1,5 +1,5 @@ # pgsodium extension comment = 'Postgres extension for libsodium functions' -default_version = '3.1.1' +default_version = '3.1.2' relocatable = false schema = pgsodium diff --git a/sql/pgsodium--3.1.1--3.1.2.sql b/sql/pgsodium--3.1.1--3.1.2.sql new file mode 100644 index 0000000..828ded1 --- /dev/null +++ b/sql/pgsodium--3.1.1--3.1.2.sql @@ -0,0 +1,10 @@ +DROP EVENT TRIGGER pgsodium_trg_mask_update; + +CREATE EVENT TRIGGER pgsodium_trg_mask_update + ON ddl_command_end + WHEN TAG IN ( + 'SECURITY LABEL', + 'ALTER TABLE' + ) + EXECUTE PROCEDURE pgsodium.trg_mask_update() +;