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

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