Skip to content

Commit

Permalink
Fix issues in update procedure, up to update 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltanar committed Nov 20, 2024
1 parent 980955b commit a04ae5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HappySearchObjectClasses/Database/DatabaseTableBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private static void CreateCharacterItems(SQLiteConnection connection)
""Description"" TEXT,
""Image"" TEXT,
""TraitScore"" REAL,
""NewSinceUpdate"" INTEGER,
PRIMARY KEY(""ID"")
);");
}
Expand Down
2 changes: 1 addition & 1 deletion HappySearchObjectClasses/Database/VisualNovelDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ private void Seed()
TableDetails.Upsert(new TableDetail { Key = "author", Value = "Zoltanar" }, false);
TableDetails.Upsert(new TableDetail { Key = "projecturl", Value = StaticHelpers.ProjectURL }, false);
TableDetails.Upsert(new TableDetail { Key = "databaseversion", Value = StaticHelpers.ClientVersion }, false);
TableDetails.Upsert(new TableDetail { Key = "updates", Value = "2" }, false);
TableDetails.Upsert(new TableDetail { Key = "updates", Value = "5" }, false);
//ExecuteSqlCommand("CREATE UNIQUE INDEX `UniqueCIDToAliasToVN` ON `CharacterStaffs` (`AliasId` ,`ListedVNId` ,`CharacterItem_Id` )", false);
//ExecuteSqlCommand("CREATE UNIQUE INDEX `UniqueCIDToTrait` ON `DbTraits` (`TraitId` ,`CharacterItem_ID` )", false);
//ExecuteSqlCommand("CREATE UNIQUE INDEX `UniqueCIDToVNID` ON `CharacterVNs` (`ListedVNId` ,`CharacterItem_Id` )", false);
Expand Down

0 comments on commit a04ae5c

Please sign in to comment.