boulder/core
Daniel McCarney 4c9cf065a8 `certificateStatus` table optimizations (Part One) (#2177)
This PR adds a migration to create two new fields on the `certificateStatus` table: `notAfter` and `isExpired`. The rationale for these fields is explained in #1864. Usage of these fields is gated behind `features.CertStatusOptimizationsMigrated` per [CONTRIBUTING.md](https://github.com/letsencrypt/boulder/blob/master/CONTRIBUTING.md#gating-migrations). This flag should be set to true **only** when the `20160817143417_CertStatusOptimizations.sql` migration has been applied.

Points of difference from #2132 (the initial preparatory "all-in-one go" PR):
**Note 1**: Updating the `isExpired` field in the OCSP updater can not be done yet, the `notAfter` field needs to be fully populated first - otherwise a separate query or a messy `JOIN` would have to be used to determine if a certStatus `isExpired` by using the `certificates` table's `expires` field. 
**Note 2**: Similarly we can't remove the `JOIN` on `certificates` from the `findStaleOCSPResponse` query yet until all DB rows have `notAfter` populated. This will happen in a separate **Part Two** PR.
2016-09-30 14:52:19 -04:00
..
proto Fix Docker test builds: latest certbot and grpc (#1991) 2016-06-29 10:54:03 -07:00
challenges.go Remove last vestiges of challenge.AccountKey. (#1949) 2016-06-21 16:25:58 -07:00
core_test.go Replace *AcmeURL with string (#2117) 2016-08-11 13:27:19 -07:00
interfaces.go Re-apply 2138 with proper gating (#2199) 2016-09-29 17:16:03 -04:00
objects.go `certificateStatus` table optimizations (Part One) (#2177) 2016-09-30 14:52:19 -04:00
objects_test.go Move MergeUpdate out of core (#2114) 2016-08-08 17:12:52 -07:00
reverse-name.go Store a DB of issued names. 2015-09-28 19:37:50 -07:00
util.go Replace *AcmeURL with string (#2117) 2016-08-11 13:27:19 -07:00
util_test.go Replace *AcmeURL with string (#2117) 2016-08-11 13:27:19 -07:00
va.go Implement gRPC for VA's RPCs (#1738) 2016-05-31 16:44:48 -07:00