mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 11:04:31 -05:00
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`.
This commit is contained in:
parent
41ec23631a
commit
a2f33176aa
@ -3,7 +3,7 @@ IF COL_LENGTH('[dbo].[OrganizationUser]', 'Email') = 100
|
|||||||
BEGIN
|
BEGIN
|
||||||
ALTER TABLE [dbo].[OrganizationUser]
|
ALTER TABLE [dbo].[OrganizationUser]
|
||||||
ALTER COLUMN
|
ALTER COLUMN
|
||||||
Email NVARCHAR(256) NOT NULL
|
Email NVARCHAR(256) NULL
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
@ -301,4 +301,4 @@ BEGIN
|
|||||||
OR (@OnlyUsers = 1 AND U.[Email] = @Email)
|
OR (@OnlyUsers = 1 AND U.[Email] = @Email)
|
||||||
)
|
)
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user