Skip to content

Commit

Permalink
fix: Fixes incorrect MySQL/MariaDB syntax
Browse files Browse the repository at this point in the history
for the last db migration.

Related to #1180
  • Loading branch information
revam committed Sep 24, 2024
1 parent 02af85a commit 12c92df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shoko.Server/Databases/MySQL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,8 @@ public class MySQL : BaseDatabase<MySqlConnection>
new(136, 9, "DROP TABLE IF EXISTS `AniDB_Seiyuu`"),
new(136, 10, "DROP TABLE IF EXISTS `AniDB_Character_Seiyuu`"),
new(137, 1, "ALTER TABLE `TMDB_Show` ADD COLUMN `PreferredAlternateOrderingID` VARCHAR(64) CHARACTER SET UTF8 NULL DEFAULT NULL;"),
new(138, 1, "ALTER TABLE `TMDB_Show` CHANGE COLUMN `ContentRatings` VARCHAR(512) CHARACTER SET UTF8 NOT NULL"),
new(138, 2, "ALTER TABLE `TMDB_Movie` CHANGE COLUMN `ContentRatings` VARCHAR(512) CHARACTER SET UTF8 NOT NULL"),
new(138, 1, "ALTER TABLE `TMDB_Show` CHANGE COLUMN `ContentRatings` `ContentRatings` VARCHAR(512) CHARACTER SET UTF8 NOT NULL"),
new(138, 2, "ALTER TABLE `TMDB_Movie` CHANGE COLUMN `ContentRatings` `ContentRatings` VARCHAR(512) CHARACTER SET UTF8 NOT NULL"),
};

private DatabaseCommand linuxTableVersionsFix = new("RENAME TABLE versions TO Versions;");
Expand Down

0 comments on commit 12c92df

Please sign in to comment.