2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
data-service/sqitch/deploy/guix_revision_lint_checkers.sql
Christopher Baines 91a9ba4349 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.
2019-09-01 18:32:09 +01:00

12 lines
310 B
PL/PgSQL

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