IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'EST_TRIB_CONF_GRP_CPL' AND COLUMN_NAME = 'FLAG_FTI')
BEGIN 
    ALTER TABLE EST_TRIB_CONF_GRP_CPL ADD FLAG_FTI INT NOT NULL DEFAULT 0;
END

IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'EST_TRIB_CONF_GRP_CPL' AND COLUMN_NAME = 'FLAG_SUFRAMA')
BEGIN 
    ALTER TABLE EST_TRIB_CONF_GRP_CPL ADD FLAG_SUFRAMA INT NOT NULL DEFAULT 0;
END

IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'EST_TRIB_CONF_GRP_CPL' AND COLUMN_NAME = 'PERC_SUFRAMA_NF')
BEGIN 
    ALTER TABLE EST_TRIB_CONF_GRP_CPL ADD PERC_SUFRAMA_NF MONEY NOT NULL DEFAULT 0;
END

IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'EST_TRIB_CONF_GRP_CPL' AND COLUMN_NAME = 'PERC_SUFRAMA_PROD')
BEGIN 
    ALTER TABLE EST_TRIB_CONF_GRP_CPL ADD PERC_SUFRAMA_PROD MONEY NOT NULL DEFAULT 0;
END

IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'EST_TRIB_CONF_GRP_CPL' AND COLUMN_NAME = 'LIMITE_SUFRAMA_NF')
BEGIN 
    ALTER TABLE EST_TRIB_CONF_GRP_CPL ADD LIMITE_SUFRAMA_NF MONEY NOT NULL DEFAULT 0;
END

IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'EST_TRIB_CONF_GRP_CPL' AND COLUMN_NAME = 'LIMITE_SUFRAMA_PROD')
BEGIN 
    ALTER TABLE EST_TRIB_CONF_GRP_CPL ADD LIMITE_SUFRAMA_PROD MONEY NOT NULL DEFAULT 0;
END