Skip to content

Commit

Permalink
Remove EDIT_USER_GROUP_MEMBER_ROLE and disable role_index_null_query
Browse files Browse the repository at this point in the history
(unsupported in Sqlite)

Change-Id: I5dbe5452a1c8c0ed9d96c33e59be6407d8b1e74a
  • Loading branch information
margaretha committed Aug 28, 2024
1 parent 02e7095 commit 4f2b0c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/resources/db/sqlite/V1.13__role_alteration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ ALTER TABLE role_new RENAME TO role;
DROP TABLE privilege;
DROP TABLE query_access;

CREATE UNIQUE INDEX IF NOT EXISTS role_index_null_query
ON role (name, privilege, group_id)
WHERE query_id IS 0;
--CREATE UNIQUE INDEX IF NOT EXISTS role_index_null_query
--ON role (name, privilege, group_id)
--WHERE query_id IS 0;

CREATE UNIQUE INDEX IF NOT EXISTS role_index on role(name,
privilege, group_id, query_id);

DELETE FROM oauth2_access_scope where id="EDIT_USER_GROUP_MEMBER_ROLE";

0 comments on commit 4f2b0c3

Please sign in to comment.