Skip to content

Commit

Permalink
Fix SQL statements for MySQL and SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul committed May 1, 2017
1 parent 0188d8c commit d704a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Shoko.Server/Databases/MySQL.cs
Expand Up @@ -564,7 +564,7 @@ public class MySQL : BaseDatabase<MySqlConnection>, IDatabase
new DatabaseCommand(60, 1, DatabaseFixes.FixTagsWithInclude),
new DatabaseCommand(61, 1, DatabaseFixes.MakeYearsApplyToSeries),
new DatabaseCommand(62, 1, "ALTER TABLE JMMUser ADD PlexToken text character set utf8"),
new DatabaseCommand(63, 1, "ALTER TABLE AniDB_File ADD IsChaptered INT NOT NULL DEFAULT(-1)"),
new DatabaseCommand(63, 1, "ALTER TABLE AniDB_File ADD IsChaptered INT NOT NULL DEFAULT -1"),
};

private DatabaseCommand linuxTableVersionsFix = new DatabaseCommand("RENAME TABLE versions TO Versions;");
Expand Down
2 changes: 1 addition & 1 deletion Shoko.Server/Databases/SQLite.cs
Expand Up @@ -468,7 +468,7 @@ public void CreateDatabase()
new DatabaseCommand(51, 1, DatabaseFixes.MakeYearsApplyToSeries),
new DatabaseCommand(52, 1, DatabaseFixes.FixEmptyVideoInfos),
new DatabaseCommand(53, 1, "ALTER TABLE JMMUser ADD PlexToken text NULL"),
new DatabaseCommand(54, 1, "ALTER TABLE AniDB_File ADD IsChaptered INT NOT NULL DEFAULT(-1)"),
new DatabaseCommand(54, 1, "ALTER TABLE AniDB_File ADD IsChaptered INT NOT NULL DEFAULT -1"),
};


Expand Down

0 comments on commit d704a21

Please sign in to comment.