Skip to content

Commit

Permalink
Remove Challenge.LockCol
Browse files Browse the repository at this point in the history
This database column (and corresponding model field) is not used by
any Boulder logic.
  • Loading branch information
aarongable committed Feb 12, 2021
1 parent f13b8db commit 8866bca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions sa/_db-next/migrations/20210211174900_DropChallengesLockCol.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied

ALTER TABLE `challenges` DROP COLUMN `LockCol`;

-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back

ALTER TABLE `challenges` ADD COLUMN `LockCol` BIGINT(20) DEFAULT 0;
2 changes: 0 additions & 2 deletions sa/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ type challModel struct {

// TODO(#1818): Remove, this field is unused, but is kept temporarily to avoid a database migration.
Validated bool `db:"validated"`

LockCol int64
}

// newReg creates a reg model object from a core.Registration
Expand Down

0 comments on commit 8866bca

Please sign in to comment.