diff options
author | Christopher Baines <mail@cbaines.net> | 2020-03-20 01:41:32 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-03-20 08:28:55 +0000 |
commit | c44297b6159e0564ae65cbe887683020ac385e22 (patch) | |
tree | f50a12ca2516e07971d42c1d04b53e335693e03c /sqitch/deploy | |
parent | e0f920bb14c9598a4c251c05c2c5c2cd76feb7ac (diff) | |
download | data-service-c44297b6159e0564ae65cbe887683020ac385e22.tar data-service-c44297b6159e0564ae65cbe887683020ac385e22.tar.gz |
Generate and store system test derivations for all supported systems
Rather than just the native system. I'm not quite sure of the value here, as I
guess system tests should behave the same regardless of the way the software
is compiled, but this seems like it could be useful, and being explicit about
the system the derivation is for is good.
Diffstat (limited to 'sqitch/deploy')
-rw-r--r-- | sqitch/deploy/guix_revision_system_test_derivations_add_system.sql | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sqitch/deploy/guix_revision_system_test_derivations_add_system.sql b/sqitch/deploy/guix_revision_system_test_derivations_add_system.sql new file mode 100644 index 0000000..43aa9b4 --- /dev/null +++ b/sqitch/deploy/guix_revision_system_test_derivations_add_system.sql @@ -0,0 +1,18 @@ +-- Deploy guix-data-service:guix_revision_system_test_derivations_add_system to pg + +BEGIN; + +ALTER TABLE guix_revision_system_test_derivations ADD COLUMN system varchar; + +-- Assume that existing values are for 'x86_64-linux' +UPDATE guix_revision_system_test_derivations SET system = 'x86_64-linux'; + +ALTER TABLE guix_revision_system_test_derivations ALTER system SET NOT NULL; + +ALTER TABLE guix_revision_system_test_derivations + DROP CONSTRAINT guix_revision_system_test_derivations_pkey; + +ALTER TABLE guix_revision_system_test_derivations + ADD CONSTRAINT guix_revision_system_test_derivations_pkey PRIMARY KEY (guix_revision_id, system_test_id, system, derivation_id); + +COMMIT; |