Merge pull request #699 from letsencrypt/registrations_not_null

disallow all null values in registrations table
This commit is contained in:
Roland Shoemaker 2015-08-28 13:56:00 -07:00
commit a1e9f064bd
1 changed files with 14 additions and 0 deletions

View File

@ -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;