Commit 86580d2c authored by Frank Bergmann's avatar Frank Bergmann

- Fixed issue with lexcelera upgrade

parent 255625a5
......@@ -4,6 +4,12 @@ delete from acs_permissions where grantee_id in(
select object_id from acs_objects where object_type = 'user' and object_id not in (select party_id from parties)
);
-- Fraber 2021-07-11:
-- Apparently there are zombie entries in acs_permissions
delete from acs_permissions
where grantee_id in (select distinct grantee_id from acs_permissions except all select object_id from acs_objects);
ALTER TABLE acs_permissions DROP CONSTRAINT IF EXISTS acs_permissions_grantee_id_fk;
ALTER TABLE acs_permissions ADD CONSTRAINT acs_permissions_grantee_id_fk
FOREIGN KEY (grantee_id) REFERENCES parties(party_id) ON DELETE CASCADE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment