mirror of
https://github.com/juanfont/headscale.git
synced 2026-02-24 16:44:57 +01:00
Tagged nodes are owned by their tags, not a user. Previously user_id was kept as "created by" tracking, but this prevents deleting users whose nodes have all been tagged, and the ON DELETE CASCADE FK would destroy the tagged nodes. Add a migration that sets user_id = NULL on all existing tagged nodes. Subsequent commits enforce this invariant at write time. Updates #3077
3.6 KiB
3.6 KiB