ALTER TABLE ERROS_COLETA ADD (
    IDTPERRO         VARCHAR2(1) DEFAULT 'E',
    SCRIPT_COUNT_PHP CLOB,
    SCRIPT_LOG_PHP   CLOB,
    SCRIPT_COUNT_SQL CLOB,
    SCRIPT_LOG_SQL   CLOB
)
/

ALTER TABLE ERROS_COLETA MODIFY SERVIDOR NULL
/
CREATE TABLE JENKINS_JOB_STATUS (
    ID                NUMBER          NOT NULL,
    NMJOB             VARCHAR2(500)   NOT NULL,
    IDGRUPO           VARCHAR2(50)    NOT NULL,
    DTSUCESSO         DATE,
    DTERRO            DATE,
    DSERRO            CLOB,
    NRORG             NUMBER 	      DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg') 		NOT NULL,
    IDATIVO           VARCHAR2(1)     DEFAULT 'S'					NOT NULL,
    DTINCLUSAO        DATE            DEFAULT SYSDATE,
    DTULTATU          DATE            DEFAULT SYSDATE,
    NRORGINCLUSAO     NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
    CDOPERINCLUSAO    VARCHAR2(12)    DEFAULT '1' 					NULL,
    NRORGULTATU       NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
    CDOPERULTATU      VARCHAR2(12)    DEFAULT '1',
		CONSTRAINT CKC_IDATIVO_JENKINS_JOB_STATUS CHECK (IDATIVO IN ('S','N')),
		CONSTRAINT PK_JENKINS_JOB_STATUS PRIMARY KEY (ID)
)
/

ALTER TABLE JENKINS_JOB_STATUS ADD CONSTRAINT UN_JENKINS_JOB_STATUS_NMJOB UNIQUE (NMJOB)
/