Merge parent_id migration into single 2026021000 upgrade script

This commit is contained in:
Laurent Dinclaux
2026-02-10 23:34:38 +11:00
parent 0dbba36345
commit da573c184e
5 changed files with 16 additions and 18 deletions
+10
View File
@@ -74,3 +74,13 @@ ALTER TABLE `ident_switch`
smallint
DEFAULT NULL
AFTER `notify_sound`;
-- 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`);
-9
View File
@@ -1,9 +0,0 @@
-- 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`);
+6
View File
@@ -51,3 +51,9 @@ ALTER TABLE ident_switch
ADD notify_desktop
smallint
DEFAULT NULL;
-- 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);
-5
View File
@@ -1,5 +0,0 @@
-- 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);
-4
View File
@@ -1,4 +0,0 @@
-- 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);