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() +;