studio manager dss developer chile advantages wso2

manager - WSO2 AM: error de tipo en los scripts de Oracle SQL



wso2 esb advantages (1)

En el script Oracle sql de APIMGT, hay un error de tipo. AUTOINCREMENT no está funcionando y hay un error de sintaxis en el trigger de creación. La sintaxis correcta es:

CREATE TABLE AM_WORKFLOWS( WF_ID INTEGER, WF_REFERENCE VARCHAR(255) NOT NULL, WF_TYPE VARCHAR(255) NOT NULL, WF_STATUS VARCHAR(255) NOT NULL, WF_CREATED_TIME TIMESTAMP, WF_UPDATED_TIME TIMESTAMP, WF_STATUS_DESC VARCHAR(1000), TENANT_ID INTEGER, TENANT_DOMAIN VARCHAR(255), WF_EXTERNAL_REFERENCE VARCHAR(255) NOT NULL UNIQUE, PRIMARY KEY (WF_ID) ) / CREATE OR REPLACE TRIGGER AM_WORKFLOWS_TRIGGER BEFORE INSERT ON AM_WORKFLOWS REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT AM_WORKFLOWS_SEQUENCE.nextval INTO :NEW.WF_ID FROM dual; END; /