IF NOT EXISTS(SELECT * FROM sys.columns 
              WHERE Name = N'controlSurfaceId'
              AND Object_ID = Object_ID(N'pal_PageTemplateControl'))
BEGIN
       ALTER TABLE pal_PageTemplateControl
             ADD controlSurfaceId INT NULL;
END