-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1639 from cachix/cache-bust-env
eval-cache: track `builtins.getEnv` when caching
- Loading branch information
Showing
11 changed files
with
507 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
devenv-eval-cache/migrations/20241210011111_create-env-input.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
); |
Oops, something went wrong.