Skip to content

Commit 97d2b75

Browse files
committed
Add a comment on the migration stating that we keep an history of the policy data
1 parent 9b25472 commit 97d2b75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/storage-pg/migrations/20250225091000_dynamic_policy_data.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
-- Please see LICENSE in the repository root for full details.
55

66
-- Add a table which stores the latest policy data
7+
--
8+
-- Every time the policy data is updated, it creates a new row, so that we keep
9+
-- an history of the policy data, trace back which version of the data was used
10+
-- on each evaluation.
711
CREATE TABLE IF NOT EXISTS policy_data (
812
policy_data_id UUID PRIMARY KEY,
913
created_at TIMESTAMP WITH TIME ZONE NOT NULL,

0 commit comments

Comments
 (0)