IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'CD_USU' AND OBJECT_ID = OBJECT_ID('INTEGRA_FARMARCAS_ASSOCIADOS'))
BEGIN
    ALTER TABLE INTEGRA_FARMARCAS_ASSOCIADOS ADD CD_USU int NULL;
END
GO

IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'DT_CADASTRO' AND OBJECT_ID = OBJECT_ID('INTEGRA_FARMARCAS_ASSOCIADOS'))
BEGIN
    ALTER TABLE INTEGRA_FARMARCAS_ASSOCIADOS ADD DT_CADASTRO datetime NULL;
END
GO

IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE NAME = 'DT_ULT_ALT' AND OBJECT_ID = OBJECT_ID('INTEGRA_FARMARCAS_ASSOCIADOS'))
BEGIN
    ALTER TABLE INTEGRA_FARMARCAS_ASSOCIADOS ADD DT_ULT_ALT datetime NULL;
END
GO
