IF NOT EXISTS(SELECT * FROM sys.columns 
              WHERE Name = N'filterOnSelect'
              AND Object_ID = Object_ID(N'pal_Report'))
BEGIN

       ALTER TABLE pal_Report
              ADD filterOnSelect BIT NOT NULL
              CONSTRAINT Temp_Default_FilterOnSelect DEFAULT 1 WITH VALUES

	   ALTER TABLE pal_Report
			DROP CONSTRAINT Temp_Default_FilterOnSelect

		ALTER TABLE pal_Report
			ALTER COLUMN filterOnSelect BIT NULL

END



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



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