mirror of
https://dev.azure.com/tstanciu94/Tuitio/_git/Tuitio
synced 2025-03-28 23:52:20 +02:00
6 lines
239 B
SQL
6 lines
239 B
SQL
if not exists (select top 1 1 from sys.indexes where name = 'IDX_AppUser_Email_NOTNULL' AND object_id = OBJECT_ID('AppUser'))
|
|
begin
|
|
CREATE UNIQUE NONCLUSTERED INDEX IDX_AppUser_Email_NOTNULL
|
|
ON AppUser(Email)
|
|
WHERE Email IS NOT NULL
|
|
end |