From 2b738a5a4c0bccfddaacf78139b730a3355abecc Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Mon, 29 Jul 2024 15:41:55 +0200 Subject: [PATCH] Set column type for externalId (#4566) Co-authored-by: Daniel James Smith --- .../Vault/Repositories/CipherRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs b/src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs index ebd9ddf1b8..697edb3f37 100644 --- a/src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs +++ b/src/Infrastructure.Dapper/Vault/Repositories/CipherRepository.cs @@ -750,7 +750,7 @@ public class CipherRepository : Repository, ICipherRepository collectionsTable.Columns.Add(creationDateColumn); var revisionDateColumn = new DataColumn(nameof(c.RevisionDate), c.RevisionDate.GetType()); collectionsTable.Columns.Add(revisionDateColumn); - var externalIdColumn = new DataColumn(nameof(c.ExternalId), c.ExternalId.GetType()); + var externalIdColumn = new DataColumn(nameof(c.ExternalId), typeof(string)); collectionsTable.Columns.Add(externalIdColumn); foreach (DataColumn col in collectionsTable.Columns)