guix-data-service/sqitch/deploy/git_branches.sql
Christopher Baines 5028dfe706 Start to handle information about Git branches
Add some new pages /branches and /branch/... as well as a new git_branches
table. Also extend the email processing to enter the branch information in to
the database.
2019-05-05 20:06:28 +01:00

13 lines
307 B
PL/PgSQL

-- Deploy guix-data-service:git_branches to pg
BEGIN;
CREATE TABLE git_branches (
name character varying NOT NULL,
commit character varying,
git_repository_id integer NOT NULL,
datetime timestamp without time zone NOT NULL,
CONSTRAINT name_commit PRIMARY KEY(name, commit)
);
COMMIT;