From 3621d1a0ab605bada8bc60b0d20f6e45a4fd752c Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Fri, 14 Feb 2025 09:31:12 +0100 Subject: [PATCH] remove drop view if exists in changesets with runOnChange:true validCheckSum:ANY --- src/main/resources/db/changelog/1-rbac/1055-rbac-views.sql | 3 --- src/main/resources/db/changelog/1-rbac/1080-rbac-global.sql | 1 - 2 files changed, 4 deletions(-) diff --git a/src/main/resources/db/changelog/1-rbac/1055-rbac-views.sql b/src/main/resources/db/changelog/1-rbac/1055-rbac-views.sql index e9fa0db2..625fafbb 100644 --- a/src/main/resources/db/changelog/1-rbac/1055-rbac-views.sql +++ b/src/main/resources/db/changelog/1-rbac/1055-rbac-views.sql @@ -28,7 +28,6 @@ select (objectTable || '#' || objectIdName || ':' || roleType) as roleIdName, * Creates a view to the role table with row-level limitation based on the grants of the current user or assumed roles. */ -drop view if exists rbac.role_rv; create or replace view rbac.role_rv as select * -- @formatter:off @@ -228,7 +227,6 @@ select distinct * Creates a view to the users table with row-level limitation based on the grants of the current user or assumed roles. */ -drop view if exists rbac.subject_rv; create or replace view rbac.subject_rv as select distinct * -- @formatter:off @@ -323,7 +321,6 @@ execute function rbac.delete_subject_tf(); based on the grants of the current user or assumed roles. */ -- @formatter:off -drop view if exists rbac.own_granted_permissions_rv; create or replace view rbac.own_granted_permissions_rv as select r.uuid as roleuuid, p.uuid as permissionUuid, (r.objecttable || ':' || r.objectidname || ':' || r.roletype) as roleName, p.op, diff --git a/src/main/resources/db/changelog/1-rbac/1080-rbac-global.sql b/src/main/resources/db/changelog/1-rbac/1080-rbac-global.sql index 09b5fd9f..66e16a1a 100644 --- a/src/main/resources/db/changelog/1-rbac/1080-rbac-global.sql +++ b/src/main/resources/db/changelog/1-rbac/1080-rbac-global.sql @@ -81,7 +81,6 @@ $$; /* Creates a view to the rbac.global object table which maps the identifying name to the objectUuid. */ -drop view if exists rbac.global_iv; create or replace view rbac.global_iv as select target.uuid, target.name as idName from rbac.global as target;