2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
data-service/sqitch/verify/fix_null_values_in_git_branches.sql
Christopher Baines b90e6289ac 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.
2019-09-29 17:10:04 +01:00

8 lines
117 B
PL/PgSQL

-- Verify guix-data-service:fix_null_values_in_git_branches on pg
BEGIN;
-- XXX Add verifications here.
ROLLBACK;