Changeset 0.29.0 (#195)
This commit is contained in:
@@ -249,3 +249,12 @@ func (s *FileStore) ListOrphans(ctx context.Context, olderThan time.Duration) ([
|
||||
}
|
||||
return out, rows.Err()
|
||||
}
|
||||
|
||||
// ── CS5c additions (v0.29.0) ──────────────────────────────────────────
|
||||
|
||||
func (s *FileStore) UpdateStorageKey(ctx context.Context, id, key string) error {
|
||||
_, err := DB.ExecContext(ctx,
|
||||
`UPDATE files SET storage_key = $1, updated_at = NOW() WHERE id = $2`,
|
||||
key, id)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user