Merge parent_id migration into single 2026021000 upgrade script
This commit is contained in:
@@ -74,3 +74,13 @@ ALTER TABLE `ident_switch`
|
|||||||
smallint
|
smallint
|
||||||
DEFAULT NULL
|
DEFAULT NULL
|
||||||
AFTER `notify_sound`;
|
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`);
|
||||||
|
|||||||
@@ -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`);
|
|
||||||
@@ -51,3 +51,9 @@ ALTER TABLE ident_switch
|
|||||||
ADD notify_desktop
|
ADD notify_desktop
|
||||||
smallint
|
smallint
|
||||||
DEFAULT NULL;
|
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);
|
||||||
|
|||||||
@@ -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);
|
|
||||||
@@ -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);
|
|
||||||
Reference in New Issue
Block a user