Migration and initial schemas for linking alias identities to parent accounts via a nullable parent_id foreign key.
5 lines
219 B
SQL
5 lines
219 B
SQL
-- 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 IF NOT EXISTS IX_ident_switch_parent_id ON ident_switch(parent_id);
|