Skip to content

Commit d63f65c

Browse files
authored
Give registrations.contact column a default value (#8207)
Alter the "registrations" table so that the "contact" column has a default value of the JSON empty list "[]". This, once deployed to all production environments, will allow Boulder to stop writing to and reading from this column, in turn allowing it to be eventually wholly dropped from the database. IN-11365 tracks the corresponding production database changes Part of #8176
1 parent 2eaa2fe commit d63f65c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- +migrate Up
2+
-- SQL in section 'Up' is executed when this migration is applied
3+
4+
ALTER TABLE `registrations` ALTER COLUMN `contact` SET DEFAULT '[]';
5+
6+
-- +migrate Down
7+
-- SQL section 'Down' is executed when this migration is rolled back
8+
9+
ALTER TABLE `registrations` ALTER COLUMN `LockCol` DROP DEFAULT;

0 commit comments

Comments
 (0)