only add lock cols to tables that need them...
This commit is contained in:
parent
7a1a7ec32a
commit
99f385c56e
|
|
@ -57,8 +57,6 @@ type Auth struct {
|
||||||
Sequence int64 `db:"sequence"`
|
Sequence int64 `db:"sequence"`
|
||||||
Digest string `db:"digest"`
|
Digest string `db:"digest"`
|
||||||
core.Authorization
|
core.Authorization
|
||||||
|
|
||||||
Version int64 // Lock column
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Certificate struct {
|
type Certificate struct {
|
||||||
|
|
@ -66,8 +64,6 @@ type Certificate struct {
|
||||||
Digest string `db:"digest"`
|
Digest string `db:"digest"`
|
||||||
Content []byte `db:"content"`
|
Content []byte `db:"content"`
|
||||||
Issued time.Time `db:"issued"`
|
Issued time.Time `db:"issued"`
|
||||||
|
|
||||||
Version int64 // Lock column
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type CertificateStatus struct {
|
type CertificateStatus struct {
|
||||||
|
|
@ -84,16 +80,12 @@ type OcspResponse struct {
|
||||||
Serial string `db:"serial"`
|
Serial string `db:"serial"`
|
||||||
CreatedAt time.Time `db:"createdAt"`
|
CreatedAt time.Time `db:"createdAt"`
|
||||||
Response []byte `db:"response"`
|
Response []byte `db:"response"`
|
||||||
|
|
||||||
Version int64 // Lock column
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Crl struct {
|
type Crl struct {
|
||||||
Serial string `db:"serial"`
|
Serial string `db:"serial"`
|
||||||
CreatedAt time.Time `db:"createdAt"`
|
CreatedAt time.Time `db:"createdAt"`
|
||||||
Crl string `db:"crl"`
|
Crl string `db:"crl"`
|
||||||
|
|
||||||
Version int64 // Lock column
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Type converter
|
// Type converter
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue