fix(db): make bucket_prefix column immutable for storage buckets (#4108)

pull/4207/head
Damian Debkowski 2 years ago committed by GitHub
parent ec8902ec68
commit 2f62f65252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,11 @@
-- Copyright (c) HashiCorp, Inc.
-- SPDX-License-Identifier: BUSL-1.1
begin;
drop trigger immutable_columns on storage_plugin_storage_bucket;
create trigger immutable_columns before update on storage_plugin_storage_bucket
for each row execute procedure immutable_columns('public_id', 'scope_id', 'create_time', 'bucket_name', 'bucket_prefix');
commit;
Loading…
Cancel
Save