Skip to content

Commit

Permalink
Apply DatabaseFixes.FixEmptyVideoInfos to SQL server and SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
Cazzar committed Feb 2, 2017
1 parent b9cb7ee commit a30f6c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion JMMServer/Databases/SQLServer.cs
Expand Up @@ -18,7 +18,7 @@ namespace JMMServer.Databases
public class SQLServer : BaseDatabase<SqlConnection>, IDatabase
{
public string Name { get; } = "SQLServer";
public int RequiredVersion { get; } = 55;
public int RequiredVersion { get; } = 56;

public void BackupDatabase(string fullfilename)
{
Expand Down Expand Up @@ -363,6 +363,7 @@ public void CreateDatabase()
new DatabaseCommand(53, 3,"CREATE INDEX UIX_ScanFileStatus ON ScanFile(ScanID,Status,CheckDate);"),
new DatabaseCommand(54, 1, DatabaseFixes.FixTagsWithInclude),
new DatabaseCommand(55, 1, DatabaseFixes.MakeYearsApplyToSeries),
new DatabaseCommand(56, 1, DatabaseFixes.FixEmptyVideoInfos),
};

private List<DatabaseCommand> updateVersionTable = new List<DatabaseCommand>
Expand Down
3 changes: 2 additions & 1 deletion JMMServer/Databases/SQLite.cs
Expand Up @@ -18,7 +18,7 @@ public class SQLite : BaseDatabase<SQLiteConnection>, IDatabase

public string Name { get; } = "SQLite";

public int RequiredVersion { get; } = 51;
public int RequiredVersion { get; } = 52;



Expand Down Expand Up @@ -339,6 +339,7 @@ public void CreateDatabase()
new DatabaseCommand(49, 3, "CREATE INDEX UIX_ScanFileStatus ON ScanFile(ScanID,Status,CheckDate);"),
new DatabaseCommand(50, 1, DatabaseFixes.FixTagsWithInclude),
new DatabaseCommand(51, 1, DatabaseFixes.MakeYearsApplyToSeries),
new DatabaseCommand(52, 1, DatabaseFixes.FixEmptyVideoInfos),

};

Expand Down

0 comments on commit a30f6c6

Please sign in to comment.