IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE OBJECT_ID = OBJECT_ID(N'DBO.RC_CLI_CRED_RC_CLI_AUDITORIA') AND NAME = 'CD_MOT_BLOQ_CLI')
BEGIN
	ALTER TABLE DBO.RC_CLI_CRED_RC_CLI_AUDITORIA ADD CD_MOT_BLOQ_CLI INT NULL;
END
GO

IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE OBJECT_ID = OBJECT_ID(N'DBO.RC_CLI_CRED_RC_CLI_AUDITORIA') AND NAME = 'CD_MDL_VD')
BEGIN
	ALTER TABLE DBO.RC_CLI_CRED_RC_CLI_AUDITORIA ADD CD_MDL_VD INT NULL;
END
GO

IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE OBJECT_ID = OBJECT_ID(N'DBO.RC_CLI_CRED_RC_CLI_AUDITORIA') AND NAME = 'FLAG_N_GERA_FAT')
BEGIN
	ALTER TABLE DBO.RC_CLI_CRED_RC_CLI_AUDITORIA ADD FLAG_N_GERA_FAT INT NULL;
END
GO

IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE OBJECT_ID = OBJECT_ID(N'DBO.RC_CLI_CRED_RC_CLI_AUDITORIA') AND NAME = 'FLAG_N_CARTA_COB')
BEGIN
	ALTER TABLE DBO.RC_CLI_CRED_RC_CLI_AUDITORIA ADD FLAG_N_CARTA_COB INT NULL;
END
GO

IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE OBJECT_ID = OBJECT_ID(N'DBO.RC_CLI_CRED_RC_CLI_AUDITORIA') AND NAME = 'FLAG_N_TEL_COB')
BEGIN
	ALTER TABLE DBO.RC_CLI_CRED_RC_CLI_AUDITORIA ADD FLAG_N_TEL_COB INT NULL;
END
GO

IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE OBJECT_ID = OBJECT_ID(N'DBO.RC_CLI_CRED_RC_CLI_AUDITORIA') AND NAME = 'DIAS_CAREN_ATRASO')
BEGIN
	ALTER TABLE DBO.RC_CLI_CRED_RC_CLI_AUDITORIA ADD DIAS_CAREN_ATRASO INT NULL;
END
GO

IF NOT EXISTS (SELECT * FROM SYS.COLUMNS WHERE OBJECT_ID = OBJECT_ID(N'DBO.RC_CLI_CRED_RC_CLI_AUDITORIA') AND NAME = 'DIAS_CAREN_BLOQ')
BEGIN
	ALTER TABLE DBO.RC_CLI_CRED_RC_CLI_AUDITORIA ADD DIAS_CAREN_BLOQ INT NOT NULL DEFAULT 0;
END
GO