mirror of https://github.com/hashicorp/boundary
fix(db): Set max storage policy days (#4267)
parent
6a37c93d77
commit
fa69ddcb8a
@ -0,0 +1,12 @@
|
||||
-- Copyright (c) HashiCorp, Inc.
|
||||
-- SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
begin;
|
||||
|
||||
alter table policy_storage_policy
|
||||
add constraint delete_after_days_less_than_100_years
|
||||
check(delete_after_days <= 36525),
|
||||
add constraint retain_for_days_less_than_100_years
|
||||
check(retain_for_days <= 36525);
|
||||
|
||||
commit;
|
||||
Loading…
Reference in new issue