diff --git a/pkg/probo/coredata/evidence.go b/pkg/probo/coredata/evidence.go index 95090e778..c5f51b6ee 100644 --- a/pkg/probo/coredata/evidence.go +++ b/pkg/probo/coredata/evidence.go @@ -32,6 +32,8 @@ type ( ID gid.GID TaskID gid.GID ObjectKey string + MimeType string + Size uint64 CreatedAt time.Time UpdatedAt time.Time } @@ -48,6 +50,8 @@ func (e *Evidence) scan(r pgx.Row) error { &e.ID, &e.TaskID, &e.ObjectKey, + &e.MimeType, + &e.Size, &e.CreatedAt, &e.UpdatedAt, ) @@ -65,6 +69,8 @@ SELECT id, task_id, object_key, + mime_type, + size, created_at, updated_at FROM diff --git a/pkg/probo/coredata/migrations/20250130T210000Z.sql b/pkg/probo/coredata/migrations/20250130T210000Z.sql new file mode 100644 index 000000000..1619354e7 --- /dev/null +++ b/pkg/probo/coredata/migrations/20250130T210000Z.sql @@ -0,0 +1,3 @@ +ALTER TABLE evidences + ADD COLUMN mime_type TEXT NOT NULL, + ADD COLUMN size NUMERIC NOT NULL;