From a5f9921639a69c40c5c9c4d4d4af396a888f68fd Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Fri, 20 Sep 2019 14:07:18 +0200
Subject: [PATCH] default privileges are marked with '*' project id

---
 .../14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql b/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql
index fc661c0e05..40e2f4a800 100644
--- a/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql
+++ b/persist/src/main/resources/db/migration/14.0.0~alpha.0/V14.0.0.20190618__new_permission_model.sql
@@ -106,3 +106,6 @@ alter table privilege_table alter column object_id type varchar;
 
 -- change id to project_id for project prvileges
 update privilege_table set object_id = (select project_id from project_table where id::text = object_id) where object_id is not null;
+
+-- default privileges are marked with '*' project id
+update privilege_table set object_id = '*' where object_id is null and type like '%PROJECT%';
\ No newline at end of file
-- 
GitLab