Skip to content

Commit 0aff3ef

Browse files
committed
Fixed comments in the DB upgrade logic
1 parent f98f4ec commit 0aff3ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MimeKit/Cryptography/SqlCertificateDatabase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void CreateCertificatesTable (DbConnection connection, DataTable table)
323323
// * Version 2: v4.9.0 added the SUBJECTDNSNAMES column and started canonicalizing the SUBJECTEMAIL and SUBJECTDNSNAMES columns with the IDN-encoded values.
324324

325325
if (!hasAnchorColumn) {
326-
// Upgrade from Version 1.
326+
// Upgrade to Version 1.
327327
ExecuteWithinTransaction (() => {
328328
var id = GetParameterName (CertificateColumnNames.Id);
329329
var anchor = GetParameterName (CertificateColumnNames.Anchor);
@@ -371,7 +371,7 @@ void CreateCertificatesTable (DbConnection connection, DataTable table)
371371
RemoveIndex (connection, table.TableName, CertificateColumnNames.BasicConstraints, CertificateColumnNames.Fingerprint);
372372
RemoveIndex (connection, table.TableName, CertificateColumnNames.BasicConstraints, CertificateColumnNames.SubjectEmail);
373373
} else if (!hasSubjectDnsNamesColumn) {
374-
// Upgrade from Version 2.
374+
// Upgrade to Version 2.
375375
ExecuteWithinTransaction (() => {
376376
var id = GetParameterName (CertificateColumnNames.Id);
377377
var subjectEmail = GetParameterName (CertificateColumnNames.SubjectEmail);

0 commit comments

Comments
 (0)