fix(db): Set max storage policy days (#4267)

This commit is contained in:
Louis Ruch authored and GitHub committed 2024-01-22 16:00:17 -08:00
1 parent 6a37c93d77
commit fa69ddcb8a
2 files changed
+29 -1

No files matched your search

@@ -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;