Skip to content

Commit

Permalink
eval-cache: track env vars during caching
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Dec 10, 2024
1 parent 747ce5e commit 944cdef
Show file tree
Hide file tree
Showing 7 changed files with 443 additions and 201 deletions.
16 changes: 16 additions & 0 deletions devenv-eval-cache/migrations/20241210011111_create-env-input.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Rename table for file inputs
ALTER TABLE file_path
RENAME TO file_input;

ALTER TABLE cmd_input_path
RENAME COLUMN file_path_id TO file_input_id;

CREATE TABLE env_input (
id INTEGER NOT NULL PRIMARY KEY,
cached_cmd_id INTEGER NOT NULL,
name TEXT NOT NULL,
content_hash CHAR(64) NOT NULL,
updated_at INTEGER NOT NULL DEFAULT (strftime ('%s', 'now')),
FOREIGN KEY (cached_cmd_id) REFERENCES cached_cmd (id) ON DELETE CASCADE,
UNIQUE (cached_cmd_id, name)
);
Loading

0 comments on commit 944cdef

Please sign in to comment.