Add a new table to nars for derivation source files

This will allow serving the nars for derivation source files.
This commit is contained in:
Christopher Baines 2019-12-28 22:47:58 +00:00
parent f56935a8a6
commit c84b21be7c
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,14 @@
-- Deploy guix-data-service:add_derivation_source_file_nars to pg
BEGIN;
CREATE TABLE derivation_source_file_nars (
derivation_source_file_id integer PRIMARY KEY REFERENCES derivation_source_files (id),
compression varchar NOT NULL,
hash_algorithm varchar NOT NULL,
hash varchar NOT NULL,
uncompressed_size integer NOT NULL,
data bytea NOT NULL
);
COMMIT;