1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Fix column NULLness 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`.
This commit is contained in:
Chad Scharf 2021-03-24 12:50:57 -04:00 committed by GitHub
parent 41ec23631a
commit a2f33176aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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