mirror of https://github.com/hashicorp/boundary
fix(db): make bucket_prefix column immutable for storage buckets (#4108)
parent
ec8902ec68
commit
2f62f65252
@ -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…
Reference in new issue