unified-storage: sqlkv migrations (#114790)

* unified-storage: create resource_events table and add key_path column to resource_history

* Update resource_history_insert template

* update test snapshots

* use latin encoding for key_path and bump size to 2048
This commit is contained in:
Will Assis
2025-12-04 09:21:17 -05:00
committed by GitHub
parent c88314296b
commit 994e1dd58f
6 changed files with 30 additions and 8 deletions
@@ -12,7 +12,8 @@ INSERT INTO {{ .Ident "resource_history" }}
{{ .Ident "previous_resource_version"}},
{{ .Ident "generation"}},
{{ .Ident "value" }},
{{ .Ident "action" }}
{{ .Ident "action" }},
{{ .Ident "key_path" }}
)
VALUES (
@@ -28,6 +29,7 @@ INSERT INTO {{ .Ident "resource_history" }}
{{ .Arg .WriteEvent.PreviousRV }},
{{ .Arg .Generation }},
{{ .Arg .WriteEvent.Value }},
{{ .Arg .WriteEvent.Type }}
{{ .Arg .WriteEvent.Type }},
{{ .Arg .KeyPath }}
)
;