Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'ClubCreditSetting'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'Percent_Club')
  Alter Table ClubCreditSetting Add Percent_Club real DEFAULT(0)

Select @Id = Id From sysobjects Where Name = 'ClubCreditSetting'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'FromDay')
  Alter Table ClubCreditSetting Add  FromDay smallint DEFAULT(0)

  Select @Id = Id From sysobjects Where Name = 'ClubCreditSetting'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'ToDay')
  Alter Table ClubCreditSetting Add  ToDay smallint DEFAULT(0)

  Select @Id = Id From sysobjects Where Name = 'ClubCreditSetting'
if not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'ScorePrice')
  Alter Table ClubCreditSetting Add ScorePrice money null