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