IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE [name] = 'Release') AND NOT EXISTS (SELECT TOP 1 1 FROM [Common].[Release] WHERE [Version] = '2.3.0')
BEGIN
	INSERT INTO
		[Common].[Release]
		([Version],
		[VersionLabel],
		[ReleaseDate])
	VALUES
		('2.3.0',
		'KaaS-WebAPI_v2.3.0',
		GETUTCDATE())
END
GO

IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE [name] = 'Release') AND NOT EXISTS (SELECT TOP 1 1 FROM [Common].[Release] WHERE [Version] = '2.3.1')
BEGIN
	INSERT INTO
		[Common].[Release]
		([Version],
		[VersionLabel],
		[ReleaseDate])
	VALUES
		('2.3.1',
		'KaaS-WebAPI_v2.3.1',
		GETUTCDATE())
END
GO

IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE [name] = 'Release') AND NOT EXISTS (SELECT TOP 1 1 FROM [Common].[Release] WHERE [Version] = '2.3.2')
BEGIN
	INSERT INTO
		[Common].[Release]
		([Version],
		[VersionLabel],
		[ReleaseDate])
	VALUES
		('2.3.2',
		'KaaS-WebAPI_v2.3.2',
		GETUTCDATE())
END
GO

IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE [name] = 'Release') AND NOT EXISTS (SELECT TOP 1 1 FROM [Common].[Release] WHERE [Version] = '2.3.3')
BEGIN
	INSERT INTO
		[Common].[Release]
		([Version],
		[VersionLabel],
		[ReleaseDate])
	VALUES
		('2.3.3',
		'KaaS-WebAPI_v2.3.3',
		GETUTCDATE())
END
GO

IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE [name] = 'Release') AND NOT EXISTS (SELECT TOP 1 1 FROM [Common].[Release] WHERE [Version] = '2.4')
BEGIN
	INSERT INTO
		[Common].[Release]
		([Version],
		[VersionLabel],
		[ReleaseDate])
	VALUES
		('2.4',
		'KaaS-WebAPI_v2.4',
		GETUTCDATE())
END
GO

IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE [name] = 'Release') AND NOT EXISTS (SELECT TOP 1 1 FROM [Common].[Release] WHERE [Version] = '2.4.1')
BEGIN
	INSERT INTO
		[Common].[Release]
		([Version],
		[VersionLabel],
		[ReleaseDate])
	VALUES
		('2.4.1',
		'KaaS-WebAPI_v2.4.1',
		GETUTCDATE())
END
GO
