Start storing channel instance derivations

These are the ones that relate to Guix pull.
This commit is contained in:
Christopher Baines 2020-02-11 08:56:24 +00:00
parent 406aa5e160
commit 9be7dbac0b
8 changed files with 110 additions and 11 deletions

View file

@ -0,0 +1,13 @@
-- Deploy guix-data-service:channel_instance_derivations to pg
BEGIN;
CREATE TABLE channel_instances (
guix_revision_id integer NOT NULL REFERENCES guix_revisions(id),
system varchar NOT NULL,
derivation_id integer NOT NULL REFERENCES derivations (id),
PRIMARY KEY (guix_revision_id, system),
UNIQUE (derivation_id)
);
COMMIT;