Merge pull request #699 from letsencrypt/registrations_not_null
disallow all null values in registrations table
This commit is contained in:
commit
a1e9f064bd
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
-- +goose Up
|
||||
-- SQL in section 'Up' is executed when this migration is applied
|
||||
|
||||
ALTER TABLE `registrations` MODIFY `contact` varchar(255) NOT NULL;
|
||||
ALTER TABLE `registrations` MODIFY `agreement` varchar(255) NOT NULL;
|
||||
ALTER TABLE `registrations` MODIFY `LockCol` bigint(20) NOT NULL;
|
||||
|
||||
-- +goose Down
|
||||
-- SQL section 'Down' is executed when this migration is rolled back
|
||||
|
||||
ALTER TABLE `registrations` MODIFY `contact` varchar(255) DEFAULT NULL;
|
||||
ALTER TABLE `registrations` MODIFY `agreement` varchar(255) DEFAULT NULL;
|
||||
ALTER TABLE `registrations` MODIFY `LockCol` bigint(20) DEFAULT NULL;
|
||||
Loading…
Reference in New Issue