Platform map bug fix, and default map update (#105)

This commit is contained in:
Michael Green
2023-09-18 11:36:23 +10:00
committed by GitHub
parent 09dece08f3
commit 031edd7088
2 changed files with 3 additions and 861 deletions

View File

@@ -178,12 +178,12 @@ namespace gaseous_server.Models
sql = "INSERT INTO PlatformMap_Extensions (Id, Extension) VALUES (@Id, @Extension);";
dbDict.Clear();
dbDict.Add("Id", item.IGDBId);
dbDict.Add("Extension", extension);
dbDict.Add("Extension", extension.Trim().ToUpper());
db.ExecuteCMD(sql, dbDict);
}
// delete duplicates
sql = "DELETE FROM PlatformMap_UniqueExtensions; INSERT INTO PlatformMap_UniqueExtensions SELECT * FROM PlatformMap_Extensions WHERE Extension IN (SELECT Extension FROM PlatformMap_Extensions GROUP BY Extension HAVING COUNT(Extension) = 1);";
sql = "DELETE FROM PlatformMap_UniqueExtensions; INSERT INTO PlatformMap_UniqueExtensions SELECT * FROM PlatformMap_Extensions WHERE Extension <> '.ZIP' AND Extension IN (SELECT Extension FROM PlatformMap_Extensions GROUP BY Extension HAVING COUNT(Extension) = 1);";
db.ExecuteCMD(sql);
}

File diff suppressed because one or more lines are too long