Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: remove branches perms (#16368)

p0nyc4fdcb09f457
diff --git a/backend/migrator/migration/3.7/0014##remove_branch_permissions.sql b/backend/migrator/migration/3.7/0014##remove_branch_permissions.sql
new file mode 100644
index 0000000000..a80286e312
--- /dev/null
+++ b/backend/migrator/migration/3.7/0014##remove_branch_permissions.sql
@@ -0,0 +1,10 @@
+UPDATE role
+SET permissions = jsonb_set(permissions, '{permissions}',
+ (permissions->'permissions')::jsonb
+ - 'bb.branches.admin'
+ - 'bb.branches.create'
+ - 'bb.branches.delete'
+ - 'bb.branches.get'
+ - 'bb.branches.list'
+ - 'bb.branches.update'
+);
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index 7be23a58c3..53fc45c496 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -12,7 +12,7 @@ import (
func TestLatestVersion(t *testing.T) {
files, err := getSortedVersionedFiles()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("3.7.13"), *files[len(files)-1].version)
+ require.Equal(t, semver.MustParse("3.7.14"), *files[len(files)-1].version)
}
func TestVersionUnique(t *testing.T) {