From 898984322e9b4baa11f2ef7f72ba79478ccd2eec Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Sat, 25 Jan 2020 21:50:52 -0700 Subject: [PATCH] Switch the indexed archives backend to MSSQL for better ACID support --- .../Models/Sql/ArchiveContent.cs | 13 +++++++++++++ Wabbajack.BuildServer/Models/Sql/IndexedFile.cs | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Wabbajack.BuildServer/Models/Sql/ArchiveContent.cs create mode 100644 Wabbajack.BuildServer/Models/Sql/IndexedFile.cs diff --git a/Wabbajack.BuildServer/Models/Sql/ArchiveContent.cs b/Wabbajack.BuildServer/Models/Sql/ArchiveContent.cs new file mode 100644 index 00000000..e4a5fafb --- /dev/null +++ b/Wabbajack.BuildServer/Models/Sql/ArchiveContent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace Wabbajack.BuildServer.Model.Models +{ + public partial class ArchiveContent + { + public long Parent { get; set; } + public long Child { get; set; } + public string Path { get; set; } + public byte[] PathHash { get; set; } + } +} diff --git a/Wabbajack.BuildServer/Models/Sql/IndexedFile.cs b/Wabbajack.BuildServer/Models/Sql/IndexedFile.cs new file mode 100644 index 00000000..70bd6204 --- /dev/null +++ b/Wabbajack.BuildServer/Models/Sql/IndexedFile.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; + +namespace Wabbajack.BuildServer.Model.Models +{ + public class IndexedFile + { + public long Hash { get; set; } + public byte[] Sha256 { get; set; } + public byte[] Sha1 { get; set; } + public byte[] Md5 { get; set; } + public int Crc32 { get; set; } + public long Size { get; set; } + } +}