Migration and initial schemas for linking alias identities to parent accounts via a nullable parent_id foreign key.
10 lines
247 B
SQL
10 lines
247 B
SQL
-- Add alias support: parent_id links an alias identity to a parent account
|
|
ALTER TABLE `ident_switch`
|
|
ADD `parent_id`
|
|
int UNSIGNED
|
|
DEFAULT NULL
|
|
AFTER `iid`;
|
|
|
|
ALTER TABLE `ident_switch`
|
|
ADD INDEX `IX_ident_switch_parent_id` (`parent_id`);
|