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:
@@ -12,6 +12,9 @@ CREATE TABLE ident_switch
|
||||
NOT NULL
|
||||
REFERENCES identities(identity_id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
UNIQUE,
|
||||
parent_id
|
||||
integer
|
||||
DEFAULT NULL,
|
||||
username
|
||||
varchar(64),
|
||||
password
|
||||
@@ -80,3 +83,4 @@ CREATE TABLE ident_switch
|
||||
);
|
||||
CREATE INDEX IX_ident_switch_user_id ON ident_switch(user_id);
|
||||
CREATE INDEX IX_ident_switch_iid ON ident_switch(iid);
|
||||
CREATE INDEX IX_ident_switch_parent_id ON ident_switch(parent_id);
|
||||
|
||||
Reference in New Issue
Block a user