declare
  object_exists exception;
  pragma exception_init (object_exists , -00955);
    begin
    execute immediate 'CREATE SEQUENCE GP_PRICING_HISTORICO_SEQ START WITH 1 INCREMENT BY 1';
	exception when others  then null;
end;
/
declare
  object_exists exception;
  pragma exception_init (object_exists , -00955);
    begin
    execute immediate 'CREATE TABLE GP_PRICING_HISTORICO (	
	    PRICINGHISTORICO_ID NUMBER(15,0) NOT NULL ENABLE,
	    PRICING_ID NUMBER(15,0),
	    ISESPECIFICO NUMBER(1,0),    
		DESCRICAO VARCHAR2(500),
	    VALORANTERIOR VARCHAR2(100),  
	    VALORNOVO VARCHAR2(100),
	    CAMPOALTERADO VARCHAR2(100),
	    CLASSEALTERADA VARCHAR2(100),
	    CLASSEPRINCIPAL VARCHAR2(100),
	    FECMODIF DATE, 
		USUARIO_ID NUMBER(7,0), 
	    CONSTRAINT PK__PRICING_HISTORICO PRIMARY KEY (PRICINGHISTORICO_ID))';
	exception when others  then null;
end;
  
  