]> the.earth.li Git - onak.git/commitdiff
Fix deletion of keys with PostgreSQL backend
authorJonathan McDowell <noodles@earth.li>
Sun, 3 Jul 2022 10:16:14 +0000 (11:16 +0100)
committerJonathan McDowell <noodles@earth.li>
Sun, 3 Jul 2022 10:16:14 +0000 (11:16 +0100)
In pg_delete_key() we deleted the key from onak_keys as the first
action, which would fail because the other tables had a reference to
that object via a foreign key relation. The correct approach is to
delete the key itself last, after the signature and UID tables have had
their entries deleted.


No differences found