guix-data-service/sqitch/deploy/add_derivation_source_file_nars.sql
Christopher Baines c84b21be7c Add a new table to nars for derivation source files
This will allow serving the nars for derivation source files.
2019-12-28 22:47:58 +00:00

14 lines
383 B
PL/PgSQL

-- 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;