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:
parent
1e0182008b
commit
ad5549342e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user