Add a new table guix_revision_lint_checkers

To associate a set of lint checkers with a specific revision. While there is
the association through the lint warnings, that only works for checkers where
there are lint warnings for that revision.

Therefore, to allow finding all the checkers for a specific revision, also
associate them directly with the revision.
This commit is contained in:
Christopher Baines 2019-09-01 13:35:23 +01:00
parent c1fad22cd1
commit 91a9ba4349
6 changed files with 95 additions and 45 deletions

View file

@ -0,0 +1,11 @@
-- Deploy guix-data-service:guix_revision_lint_checkers to pg
BEGIN;
CREATE TABLE guix_revision_lint_checkers (
lint_checker_id integer NOT NULL REFERENCES lint_checkers (id),
guix_revision_id integer NOT NULL REFERENCES guix_revisions (id),
PRIMARY KEY (lint_checker_id, guix_revision_id)
);
COMMIT;