Add parent_id column for alias identity support

Migration and initial schemas for linking alias identities to parent
accounts via a nullable parent_id foreign key.
This commit is contained in:
Laurent Dinclaux
2026-02-10 22:28:20 +11:00
parent fd9836c7ae
commit 08797ab5a8
7 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
-- Add alias support: parent_id links an alias identity to a parent account
ALTER TABLE ident_switch
ADD parent_id integer DEFAULT NULL;
CREATE INDEX IX_ident_switch_parent_id ON ident_switch(parent_id);