guix-data-service/sqitch/deploy/load_new_guix_revision_job_logs.sql
Christopher Baines d96add30a0 Record the output from loading new revisions to the database
So that it can easily be shown through the web interface. There's two tables
being used. One which temporarily stores the output as it's output while the
job is running, and other which stores the whole log once the job has
finished.
2019-06-22 01:51:49 +02:00

16 lines
374 B
PL/PgSQL

-- Deploy guix-data-service:load_new_guix_revision_job_logs to pg
BEGIN;
CREATE TABLE load_new_guix_revision_job_log_parts (
id integer NOT NULL,
job_id integer NOT NULL,
contents text NOT NULL
);
CREATE TABLE load_new_guix_revision_job_logs (
job_id integer PRIMARY KEY REFERENCES load_new_guix_revision_jobs (id),
contents text NOT NULL
);
COMMIT;