The core infrastructure backend (API, database, Docker, etc).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
306 B

IF COL_LENGTH('[dbo].[Event]', 'ProjectId') IS NULL
BEGIN
EXEC('ALTER TABLE [dbo].[Event] ADD [ProjectId] UNIQUEIDENTIFIER NULL');
END
GO
IF OBJECT_ID('[dbo].[EventView]', 'V') IS NOT NULL
BEGIN
DROP VIEW [dbo].[EventView];
END
GO
CREATE VIEW [dbo].[EventView]
AS
SELECT * FROM [dbo].[Event];
GO