1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-10 00:51:22 +01:00

Added externalId column on build collections ciphers table (#4510)

This commit is contained in:
aj-rosado 2024-07-24 16:15:55 +01:00 committed by GitHub
parent 1e0182008b
commit ad5549342e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -750,6 +750,8 @@ public class CipherRepository : Repository<Cipher, Guid>, 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());
collectionsTable.Columns.Add(externalIdColumn);
foreach (DataColumn col in collectionsTable.Columns)
{
@ -769,6 +771,7 @@ public class CipherRepository : Repository<Cipher, Guid>, ICipherRepository
row[nameColumn] = collection.Name;
row[creationDateColumn] = collection.CreationDate;
row[revisionDateColumn] = collection.RevisionDate;
row[externalIdColumn] = collection.ExternalId;
collectionsTable.Rows.Add(row);
}