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 fc661c0e05e8a4baec8f24913ccb3e5729962cf4..40e2f4a800f3fa321fae9a22a32dabfc550571ec 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