From a2f33176aa0cdac32a326ada6495ead166162bbe Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Wed, 24 Mar 2021 12:50:57 -0400 Subject: [PATCH] Fix column `NULL`ness for OrganizationUser table (#1239) Fix column `NULL`ness for OrganizationUser table in Upgrade script; prior PR I missed in the upgrade script submitted that the ALTER COLUMN statement incorrectly set the column to `NOT NULL` when the table definition had it correctly as `NULL`. --- .../2021-03-04_03_OrganizationUser_Enlarge_Email_Column.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/Migrator/DbScripts/2021-03-04_03_OrganizationUser_Enlarge_Email_Column.sql b/util/Migrator/DbScripts/2021-03-04_03_OrganizationUser_Enlarge_Email_Column.sql index 36bae407ba..51dd23b83a 100644 --- a/util/Migrator/DbScripts/2021-03-04_03_OrganizationUser_Enlarge_Email_Column.sql +++ b/util/Migrator/DbScripts/2021-03-04_03_OrganizationUser_Enlarge_Email_Column.sql @@ -3,7 +3,7 @@ IF COL_LENGTH('[dbo].[OrganizationUser]', 'Email') = 100 BEGIN ALTER TABLE [dbo].[OrganizationUser] ALTER COLUMN - Email NVARCHAR(256) NOT NULL + Email NVARCHAR(256) NULL END GO @@ -301,4 +301,4 @@ BEGIN OR (@OnlyUsers = 1 AND U.[Email] = @Email) ) END -GO \ No newline at end of file +GO