make CSR content unique in SQL table

This commit is contained in:
Roland Shoemaker 2015-05-11 23:07:41 -07:00
parent 6daa838520
commit a2b3461d6f
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ func (ssa *SQLStorageAuthority) InitTables() (err error) {
ssa.dbMap.AddTableWithName(core.CertificateStatus{}, "certificateStatus").SetKeys(false, "Serial").SetVersionCol("LockCol")
ssa.dbMap.AddTableWithName(core.OcspResponse{}, "ocspResponses").SetKeys(true, "ID")
ssa.dbMap.AddTableWithName(core.Crl{}, "crls").SetKeys(false, "Serial")
ssa.dbMap.AddTableWithName(core.DeniedCsr{}, "deniedCsrs").SetKeys(true, "ID")
ssa.dbMap.AddTableWithName(core.DeniedCsr{}, "deniedCsrs").SetKeys(true, "ID").ColMap("Der").SetUnique(true)
err = ssa.dbMap.CreateTablesIfNotExists()
return