Merge branch 'features/oracle' of https://github.com/pandorafms/pandorafms into features/oracle

This commit is contained in:
Ramon Novoa 2015-05-05 15:36:06 +02:00
commit 0dd42fd1e0
1 changed files with 5 additions and 2 deletions

View File

@ -815,7 +815,7 @@ CREATE TABLE torigen (
CREATE TABLE tperfil (
id_perfil NUMBER(10, 0) PRIMARY KEY,
name CLOB DEFAULT '',
name VARCHAR2(200) NOT NULL,
incident_edit NUMBER(1, 0) DEFAULT 0,
incident_view NUMBER(1, 0) DEFAULT 0,
incident_management NUMBER(1, 0) DEFAULT 0,
@ -1856,7 +1856,10 @@ CREATE OR REPLACE TRIGGER tevent_response_inc BEFORE INSERT ON tevent_response R
CREATE TABLE tcategory (
id NUMBER(10, 0) PRIMARY KEY,
name VARCHAR2(600) DEFAULT ''
);
);
CREATE SEQUENCE tcategory_s INCREMENT BY 1 START WITH 1;
CREATE OR REPLACE TRIGGER tcategory_inc BEFORE INSERT ON tcategory REFERENCING NEW AS NEW FOR EACH ROW BEGIN SELECT tcategory_s.nextval INTO :NEW.ID FROM dual; END tcategory_inc;;
-- ---------------------------------------------------------------------
-- Table `tupdate_settings`