diff options
author | Christopher Baines <mail@cbaines.net> | 2019-06-22 01:13:36 +0200 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-06-22 01:51:49 +0200 |
commit | d96add30a02dc6f5cee313f37b31c5525dbd5a3d (patch) | |
tree | 61891cd35c108259bc6e04bc417f9142a38304c0 /sqitch/deploy | |
parent | baf2b17bf8bbe932ab112def1b2c067f633fb52b (diff) | |
download | data-service-d96add30a02dc6f5cee313f37b31c5525dbd5a3d.tar data-service-d96add30a02dc6f5cee313f37b31c5525dbd5a3d.tar.gz |
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.
Diffstat (limited to 'sqitch/deploy')
-rw-r--r-- | sqitch/deploy/load_new_guix_revision_job_logs.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sqitch/deploy/load_new_guix_revision_job_logs.sql b/sqitch/deploy/load_new_guix_revision_job_logs.sql new file mode 100644 index 0000000..9eb804e --- /dev/null +++ b/sqitch/deploy/load_new_guix_revision_job_logs.sql @@ -0,0 +1,16 @@ +-- 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; |