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:
@@ -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 }}
|
||||
)
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user