Changeset 0.29.0 (#195)
This commit is contained in:
@@ -254,3 +254,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 = ?, updated_at = datetime('now') WHERE id = ?`,
|
||||
key, id)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user