diff --git a/src/NadekoBot/Migrations/20220102102344_crs-rename-to-expressions-perm-rename.cs b/src/NadekoBot/Migrations/20220102102344_crs-rename-to-expressions-perm-rename.cs index 5cce0f405..cd73136d4 100644 --- a/src/NadekoBot/Migrations/20220102102344_crs-rename-to-expressions-perm-rename.cs +++ b/src/NadekoBot/Migrations/20220102102344_crs-rename-to-expressions-perm-rename.cs @@ -53,10 +53,21 @@ namespace NadekoBot.Migrations migrationBuilder.Sql(@"UPDATE Permissions SET SecondaryTargetName='ACTUALEXPRESSIONS' WHERE SecondaryTargetName='ActualCustomReactions' COLLATE NOCASE;"); - + migrationBuilder.Sql(@"UPDATE Permissions SET SecondaryTargetName='EXPRESSIONS' WHERE SecondaryTargetName='CustomReactions' COLLATE NOCASE;"); + + migrationBuilder.Sql(@"UPDATE Permissions +SET SecondaryTargetName= case lower(SecondaryTargetName) + WHEN 'editcustreact' THEN 'expredit' + WHEN 'delcustreact' THEN 'exprdel' + WHEN 'listcustreact' THEN 'exprlist' + WHEN 'addcustreact' THEN 'expradd' + WHEN 'showcustreact' THEN 'exprshow' +ELSE SecondaryTargetName +END +WHERE lower(SecondaryTargetName) in ('editcustreact', 'delcustreact', 'listcustreact', 'addcustreact', 'showcustreact');"); } protected override void Down(MigrationBuilder migrationBuilder) diff --git a/src/NadekoBot/data/aliases.yml b/src/NadekoBot/data/aliases.yml index 0505de4ad..91dffe330 100644 --- a/src/NadekoBot/data/aliases.yml +++ b/src/NadekoBot/data/aliases.yml @@ -1256,6 +1256,7 @@ expredit: - expredit - exe - exedit + - ecr exprsimport: - eximport exprsexport: