Skip to content

Commit b4db450

Browse files
authored
Remove challenges table (letsencrypt#5285)
This table is not used by any Boulder logic nor by any offline stats/metrics gathering.
1 parent 7cbfe94 commit b4db450

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
-- +goose Up
3+
-- SQL in section 'Up' is executed when this migration is applied
4+
5+
DROP TABLE `challenges`;
6+
7+
-- +goose Down
8+
-- SQL section 'Down' is executed when this migration is rolled back
9+
10+
CREATE TABLE `challenges` (
11+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
12+
`authorizationID` varchar(255) NOT NULL,
13+
`LockCol` bigint(20) DEFAULT NULL,
14+
`type` varchar(255) NOT NULL,
15+
`status` varchar(255) NOT NULL,
16+
`error` mediumblob DEFAULT NULL,
17+
`validated` datetime DEFAULT NULL,
18+
`token` varchar(255) NOT NULL,
19+
`validationRecord` mediumblob DEFAULT NULL,
20+
`keyAuthorization` varchar(255) DEFAULT NULL,
21+
PRIMARY KEY (`id`),
22+
KEY `authorizationID_challenges_idx` (`authorizationID`)
23+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

sa/model.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ type challModel struct {
182182

183183
// TODO(#1818): Remove, this field is unused, but is kept temporarily to avoid a database migration.
184184
Validated bool `db:"validated"`
185-
186-
LockCol int64
187185
}
188186

189187
// newReg creates a reg model object from a core.Registration

0 commit comments

Comments
 (0)