Fix the 'NULL' values in git_branches for the commits

The git_branches table had 'NULL' values for some commits where the branch was
deleted, importantly this was the string 'NULL', not an actual NULL value.

This commit fixes that, migrating the existing values to be '', and changing
the relevant code.

The primary key is also extended to include the datetime field, as this is
important to allow a branch to be deleted twice.
This commit is contained in:
Christopher Baines 2019-09-29 17:10:04 +01:00
parent bd47a03c22
commit b90e6289ac
6 changed files with 29 additions and 3 deletions

View file

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