Make build_status.timestamp nullable

The Guix Build Coordinator doesn't record timestamps for events
currently. This is something to fix, but allow for build statuses without
timestamps as they're not necessary.
This commit is contained in:
Christopher Baines 2020-06-27 13:35:34 +01:00
parent d687928a04
commit 1d48885e6a
5 changed files with 27 additions and 3 deletions

View file

@ -0,0 +1,7 @@
-- Deploy guix-data-service:build_status_nullable_timestamp to pg
BEGIN;
ALTER TABLE build_status ALTER COLUMN timestamp DROP NOT NULl;
COMMIT;

View file

@ -0,0 +1,7 @@
-- Revert guix-data-service:build_status_nullable_timestamp from pg
BEGIN;
-- XXX Add DDLs here.
COMMIT;

View file

@ -61,3 +61,4 @@ build_servers_lookup_builds 2020-05-24T15:18:09Z Christopher Baines <mail@cbaine
make_nar_urls_file_size_optional 2020-06-03T05:27:29Z Christopher Baines <mail@cbaines.net> # Make the nar_urls.file_size optional
translations_for_lint_checker_descriptions 2020-05-22T19:49:37Z daniela <daniela@linux-ijv5> # Support translations for lint checker descriptions
translations_for_package_synopsis_and_descriptions 2020-06-09T12:42:54Z daniela <daniela@linux-ijv5> # Support translations for package synopsis and descriptions
build_status_nullable_timestamp 2020-06-27T12:34:29Z Christopher Baines <mail@cbaines.net> # Make build_status.timestamp nullable

View file

@ -0,0 +1,7 @@
-- Verify guix-data-service:build_status_nullable_timestamp on pg
BEGIN;
-- XXX Add verifications here.
ROLLBACK;