Keep authority.kind CHECK in sync with the AuthorityKind enum
#9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The allowed authority kinds live in two places with no compile-time link:
CHECK (kind IN ('person', 'organisation', 'place'))incrates/db/migrations/0002_vocabularies_authorities.sqlAuthorityKind(as_str/from_db) incrates/domain/src/authority.rsThey agree today, but adding a variant requires editing both by hand. Same pattern applies to
AuditActionvs theactionCHECK in 0001. Low priority; options: a cross-referencing comment in each location, or generate the CHECK list from the enum. Revisit if the variant sets grow.Source: Plan 2 (vocab/authorities) final review — non-blocking.