

IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'GLB_CRM_CLI_SMS' AND COLUMN_NAME = 'CD_USU_CAD')
BEGIN

   ALTER TABLE [dbo].[GLB_CRM_CLI_SMS]
      ADD  CD_USU_CAD  int  null

END

IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'GLB_CRM_CLI_SMS' AND COLUMN_NAME = 'CD_USU_ALT')
BEGIN

   ALTER TABLE [dbo].[GLB_CRM_CLI_SMS]
      ADD  CD_USU_ALT  int  null

END