IF NOT EXISTS(
    SELECT *
    FROM sys.columns 
    WHERE Name      = N'isWebsite'
      AND Object_ID = Object_ID(N'pal_Setup'))
BEGIN
    ALTER TABLE pal_Setup
	ADD isWebsite bit
END

IF NOT EXISTS(
    SELECT *
    FROM sys.columns 
    WHERE Name      = N'securePath'
      AND Object_ID = Object_ID(N'pal_Setup'))
BEGIN
    ALTER TABLE pal_Setup
	ADD securePath varchar(350)
END

IF NOT EXISTS(
    SELECT *
    FROM sys.columns 
    WHERE Name      = N'isSecureLandingPage'
      AND Object_ID = Object_ID(N'pal_Canvas'))
BEGIN
    ALTER TABLE pal_Canvas
	ADD isSecureLandingPage bit null
END


IF NOT EXISTS(
    SELECT *
    FROM sys.columns 
    WHERE Name      = N'isWizardCompleted'
      AND Object_ID = Object_ID(N'pal_SurfaceItem'))
BEGIN
    ALTER TABLE pal_SurfaceItem
	ADD isWizardCompleted bit null
END

IF NOT EXISTS(
    SELECT *
    FROM sys.columns 
    WHERE Name      = N'lastTabCompleted'
      AND Object_ID = Object_ID(N'pal_SurfaceItem'))
BEGIN
    ALTER TABLE pal_SurfaceItem
	ADD lastTabCompleted int null
END


IF NOT EXISTS(
    SELECT *
    FROM sys.columns 
    WHERE Name      = N'isHiddenFromWizzard'
      AND Object_ID = Object_ID(N'pal_SurfaceField'))
BEGIN
    ALTER TABLE pal_SurfaceField
	ADD isHiddenFromWizzard bit null
END