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.
18 lines
680 B
PL/PgSQL
18 lines
680 B
PL/PgSQL
-- 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;
|