Skip to content

Commit

Permalink
add alter table back into event trigger for mask update.
Browse files Browse the repository at this point in the history
  • Loading branch information
michelp committed Dec 13, 2022
1 parent 9854dab commit 6fabfe6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"
],
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion pgsodium.control
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions sql/pgsodium--3.1.1--3.1.2.sql
Original file line number Diff line number Diff line change
@@ -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()
;

0 comments on commit 6fabfe6

Please sign in to comment.