1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/penpot_ynh.git synced 2024-09-03 19:56:56 +02:00

Added missing diff

This commit is contained in:
Mateusz Szymański 2024-04-18 00:57:19 +02:00
parent 7ead781da6
commit dcf643f093

View file

@ -74,7 +74,9 @@ index 8c7675643..df6c17016 100644
+++ b/backend/src/app/migrations/sql/0114-mod-team-table.sql
@@ -1,4 +1,5 @@
--- Add deletion protection
-CREATE OR REPLACE TRIGGER deletion_protection__tgr
+DROP TRIGGER IF EXISTS deletion_protection__tgr on team;
+CREATE TRIGGER deletion_protection__tgr
CREATE OR REPLACE TRIGGER deletion_protection__tgr
BEFORE DELETE ON team FOR EACH STATEMENT
WHEN ((current_setting('rules.deletion_protection', true) IN ('on', '')) OR