
/*------ ATD 197657 ------*/
--- SQL SERVER
IF NOT EXISTS(SELECT 1 FROM SYSCOLUMNS WHERE name = 'FLAGRENTABI' and id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='COMPLEMENTONFSAIDA'))
	ALTER TABLE COMPLEMENTONFSAIDA ADD FLAGRENTABI NUMERIC(1) DEFAULT 0
GO

IF NOT EXISTS(SELECT 1 FROM SYSCOLUMNS WHERE name = 'FLAGRENTABI' and id IN (SELECT ID FROM SYSOBJECTS WHERE xtype='U' AND name='COMPLEMENTONFENTRA'))
	ALTER TABLE COMPLEMENTONFENTRA ADD FLAGRENTABI NUMERIC(1) DEFAULT 0
GO