DECLARE @Id Int                               
SELECT @Id = Id From sysobjects Where Name = 'OrganizationSetting'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'IsEqualNoteCodeNationalCode')
  Alter Table dbo.OrganizationSetting Add  IsEqualNoteCodeNationalCode BIT NULL DEFAULT(0)