This commit is contained in:
Roland Shoemaker 2015-05-03 14:08:02 -07:00
parent 06536fae13
commit e25c60eaf8
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func (ssa *SQLStorageAuthority) InitTables() (err error) {
ssa.dbMap.AddTableWithName(Certificate{}, "certificates").SetKeys(false, "Serial") ssa.dbMap.AddTableWithName(Certificate{}, "certificates").SetKeys(false, "Serial")
ssa.dbMap.AddTableWithName(CertificateStatus{}, "certificateStatus").SetKeys(false, "Serial").SetVersionCol("LockCol") ssa.dbMap.AddTableWithName(CertificateStatus{}, "certificateStatus").SetKeys(false, "Serial").SetVersionCol("LockCol")
ssa.dbMap.AddTableWithName(OcspResponse{}, "ocspResponses").SetKeys(true, "ID") ssa.dbMap.AddTableWithName(OcspResponse{}, "ocspResponses").SetKeys(true, "ID")
ssa.dbMap.AddTableWithName(Crl{}, "crls").SetKeys(false, "CreatedAt") ssa.dbMap.AddTableWithName(Crl{}, "crls").SetKeys(false, "Serial")
err = ssa.dbMap.CreateTablesIfNotExists() err = ssa.dbMap.CreateTablesIfNotExists()
return return