Skip to content

Commit

Permalink
Fix MySQL DB migration 119.1
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Sep 29, 2023
1 parent aecd8d2 commit 289942b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/Databases/MySQL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ public class MySQL : BaseDatabase<MySqlConnection>
new(118, 1, DatabaseFixes.FixAnimeSourceLinks),
new(118, 2, DatabaseFixes.FixOrphanedShokoEpisodes),
new DatabaseCommand(119, 1,
"CREATE TABLE FilterPreset( FilterPresetID INT NOT NULL AUTO_INCREMENT, ParentFilterPresetID int, Name text NOT NULL, FilterType int NOT NULL, Locked bit NOT NULL, Hidden bit NOT NULL, ApplyAtSeriesLevel bit NOT NULL, Expression longtext, SortingExpression longtext, PRIMARY KEY (`FilterID`) ); "),
"CREATE TABLE FilterPreset( FilterPresetID INT NOT NULL AUTO_INCREMENT, ParentFilterPresetID int, Name text NOT NULL, FilterType int NOT NULL, Locked bit NOT NULL, Hidden bit NOT NULL, ApplyAtSeriesLevel bit NOT NULL, Expression longtext, SortingExpression longtext, PRIMARY KEY (`FilterPresetID`) ); "),
new DatabaseCommand(119, 2,
"ALTER TABLE FilterPreset ADD INDEX IX_FilterPreset_ParentFilterPresetID (ParentFilterPresetID); ALTER TABLE FilterPreset ADD INDEX IX_FilterPreset_Name (Name); ALTER TABLE FilterPreset ADD INDEX IX_FilterPreset_FilterType (FilterType); ALTER TABLE FilterPreset ADD INDEX IX_FilterPreset_LockedHidden (Locked, Hidden);"),
new DatabaseCommand(119, 3, "DELETE FROM GroupFilter WHERE FilterType = 2"),
Expand Down

0 comments on commit 289942b

Please sign in to comment.