mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[RombaSharp] Write rest of UpdateDatabase code
This commit is contained in:
@@ -423,11 +423,18 @@ namespace SabreTools
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// At this point, we should have everything that needs to be added, added
|
// Now loop through and remove all references to old Dats
|
||||||
// Now we have to remove any files associated with Dats that are no longer
|
// TODO: Remove orphaned files as well
|
||||||
// around.
|
foreach (string dathash in databaseDats)
|
||||||
|
{
|
||||||
|
query = "DELETE FROM data WHERE key=\"dat\" AND value=\"" + dathash + "\"";
|
||||||
|
using (SqliteCommand slc = new SqliteCommand(query, dbc))
|
||||||
|
{
|
||||||
|
slc.ExecuteNonQuery();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user