Properly fix the hashval not null issue
authorMagnus Hagander <magnus@hagander.net>
Wed, 17 Apr 2024 08:44:22 +0000 (10:44 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 17 Apr 2024 09:13:16 +0000 (11:13 +0200)
commit1af27ac5cf638480b45228e39f7e1c274487e50c
treed29a6ba4849b0b0ed4d36a3bd3851fcc0dfa2465
parent00db3556ef6bd7ede8327b10a4804aeda54d728d
Properly fix the hashval not null issue

Previous commit (878d1540) applied the wrong fix. The field should still
be NOT NULL, the bug was actually in the trigger being created in the
earlier migration which was incorrectly missing INSERT. Fix this and
change the field back, which more or less reverts 878d1540 but does it
with a new migration so that any existing data gets fixed.
postgresqleu/util/migrations/0007_storage_trigger_fix.py [new file with mode: 0644]
postgresqleu/util/models.py