Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-kernel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-kernel
Commits
86580d2c
Commit
86580d2c
authored
Jul 12, 2021
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue with lexcelera upgrade
parent
255625a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
upgrade-5.9.0-5.9.1d1.sql
sql/postgresql/upgrade/upgrade-5.9.0-5.9.1d1.sql
+6
-0
No files found.
sql/postgresql/upgrade/upgrade-5.9.0-5.9.1d1.sql
View file @
86580d2c
...
@@ -4,6 +4,12 @@ delete from acs_permissions where grantee_id in(
...
@@ -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
)
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
DROP
CONSTRAINT
IF
EXISTS
acs_permissions_grantee_id_fk
;
ALTER
TABLE
acs_permissions
ADD
CONSTRAINT
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
;
FOREIGN
KEY
(
grantee_id
)
REFERENCES
parties
(
party_id
)
ON
DELETE
CASCADE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment