ALTER TABLE TBPEDIDO ADD WORKFLOW_ITEM_ID 		  INTEGER 	   DEFAULT 0;
ALTER TABLE TBWORKFLOW ADD MASCARA 				  VARCHAR(200) DEFAULT '';
ALTER TABLE TBPERFIL ADD WORKFLOW_ID 		  	  INTEGER 	   DEFAULT 0;
ALTER TABLE TBPERFIL ADD PERMITE_INCLUIR_WORKFLOW VARCHAR(1)   DEFAULT '0';

ALTER TABLE TBMODELO ADD WORKFLOW_ITEM_ID 		  INTEGER 	   DEFAULT 0;

CREATE INDEX ITBWORKFLOW_03 ON TBWORKFLOW (TIPO);

/*EXECUTAR APENAS UMA VEZ*/

/*
DELETE FROM TBWORKFLOW_CAMPO;
DELETE FROM TBWORKFLOW_DEPENDENCIA;
DELETE FROM TBWORKFLOW_DESTINATARIO;

DELETE FROM TBWORKFLOW_ITEM_CAMPO;
DELETE FROM TBWORKFLOW_ITEM_COMENTARIO;
DELETE FROM TBWORKFLOW_ITEM_DEPENDENCIA;
DELETE FROM TBWORKFLOW_ITEM_DESTINATARIO;
DELETE FROM TBWORKFLOW_ITEM_HISTORICO;
DELETE FROM TBWORKFLOW_ITEM_MOVIMENTACAO;
DELETE FROM TBWORKFLOW_ITEM_NOTIFICADO;
DELETE FROM TBWORKFLOW_ITEM_TAREFA; */