Skip to content

Commit

Permalink
Drop SortName column from AnimeGroup table
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Oct 17, 2023
1 parent 45d83ed commit d9621a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Shoko.Server/Databases/MySQL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ public class MySQL : BaseDatabase<MySqlConnection>
new DatabaseCommand(119, 3, "DELETE FROM GroupFilter WHERE FilterType = 2; DELETE FROM GroupFilter WHERE FilterType = 16;"),
new DatabaseCommand(119, 4, DatabaseFixes.MigrateGroupFilterToFilterPreset),
new DatabaseCommand(119, 5, DatabaseFixes.DropGroupFilter),
new DatabaseCommand(120, 1, "ALTER TABLE AnimeGroup DROP COLUMN SortName;"),
};

private DatabaseCommand linuxTableVersionsFix = new("RENAME TABLE versions TO Versions;");
Expand Down
1 change: 1 addition & 0 deletions Shoko.Server/Databases/SQLServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ public override bool HasVersionsTable()
new DatabaseCommand(112, 3, "DELETE FROM GroupFilter WHERE FilterType = 2; DELETE FROM GroupFilter WHERE FilterType = 16;"),
new DatabaseCommand(112, 4, DatabaseFixes.MigrateGroupFilterToFilterPreset),
new DatabaseCommand(112, 5, DatabaseFixes.DropGroupFilter),
new DatabaseCommand(113, 1, "ALTER TABLE AnimeGroup DROP COLUMN SortName;"),
};

private static Tuple<bool, string> DropDefaultsOnAnimeEpisode_User(object connection)
Expand Down
1 change: 1 addition & 0 deletions Shoko.Server/Databases/SQLite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ public override void CreateDatabase()
new DatabaseCommand(105, 3, "DELETE FROM GroupFilter WHERE FilterType = 2; DELETE FROM GroupFilter WHERE FilterType = 16;"),
new DatabaseCommand(105, 4, DatabaseFixes.MigrateGroupFilterToFilterPreset),
new DatabaseCommand(105, 5, DatabaseFixes.DropGroupFilter),
new DatabaseCommand(106, 1, "ALTER TABLE AnimeGroup DROP COLUMN SortName;"),
};

private static Tuple<bool, string> DropLanguage(object connection)
Expand Down

0 comments on commit d9621a8

Please sign in to comment.