Skip to content

Commit

Permalink
parametersRegion is customized in document detail
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.forge.objectweb.org/svnroot/spagobi/V_4.x/Server/trunk@23043 99afaf0d-6903-0410-885a-c66a8bbb5f81
  • Loading branch information
gavardi committed Jun 25, 2014
1 parent 9c9e541 commit 68138ad
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ ADD COLUMN MODEL_LOCKER VARCHAR(100) NULL;
COMMIT;

UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;


ALTER TABLE SBI_OBJECTS ADD COLUMN PARAMETERS_REGION VARCHAR(20) NULL;
commit
2 changes: 1 addition & 1 deletion SpagoBIDatabaseScripts/hsql/spagobi.script
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CREATE MEMORY TABLE SBI_LOV(LOV_ID INTEGER NOT NULL,DESCR VARCHAR,LABEL VARCHAR,
CREATE MEMORY TABLE SBI_OBJ_FUNC(BIOBJ_ID INTEGER NOT NULL,FUNCT_ID INTEGER NOT NULL,PROG INTEGER,USER_IN VARCHAR(100) DEFAULT '' NOT NULL,USER_UP VARCHAR(100),USER_DE VARCHAR(100),TIME_IN TIMESTAMP DEFAULT NOW NOT NULL,TIME_UP TIMESTAMP,TIME_DE TIMESTAMP,SBI_VERSION_IN VARCHAR(10),SBI_VERSION_UP VARCHAR(10),SBI_VERSION_DE VARCHAR(10),META_VERSION VARCHAR(100),ORGANIZATION VARCHAR(20),CONSTRAINT XPKSBI_OBJ_FUNC PRIMARY KEY(BIOBJ_ID,FUNCT_ID),CONSTRAINT FK_SBI_OBJ_FUNC_1 FOREIGN KEY(FUNCT_ID) REFERENCES SBI_FUNCTIONS(FUNCT_ID))
CREATE MEMORY TABLE SBI_OBJ_PAR(PAR_ID INTEGER NOT NULL,BIOBJ_ID INTEGER NOT NULL,LABEL VARCHAR,REQ_FL SMALLINT,MOD_FL SMALLINT,VIEW_FL SMALLINT,MULT_FL SMALLINT,PROG INTEGER NOT NULL,PARURL_NM VARCHAR,OBJ_PAR_ID INTEGER NOT NULL,PRIORITY INTEGER,USER_IN VARCHAR(100) DEFAULT '' NOT NULL,USER_UP VARCHAR(100),USER_DE VARCHAR(100),TIME_IN TIMESTAMP DEFAULT NOW NOT NULL,TIME_UP TIMESTAMP,TIME_DE TIMESTAMP,SBI_VERSION_IN VARCHAR(10),SBI_VERSION_UP VARCHAR(10),SBI_VERSION_DE VARCHAR(10),META_VERSION VARCHAR(100),ORGANIZATION VARCHAR(20),CONSTRAINT XPKSBI_OBJ_PAR PRIMARY KEY(OBJ_PAR_ID))
CREATE MEMORY TABLE SBI_OBJ_STATE(BIOBJ_ID INTEGER NOT NULL,STATE_ID INTEGER NOT NULL,END_DT DATE,START_DT DATE NOT NULL,NOTE VARCHAR,USER_IN VARCHAR(100) DEFAULT '' NOT NULL,USER_UP VARCHAR(100),USER_DE VARCHAR(100),TIME_IN TIMESTAMP DEFAULT NOW NOT NULL,TIME_UP TIMESTAMP,TIME_DE TIMESTAMP,SBI_VERSION_IN VARCHAR(10),SBI_VERSION_UP VARCHAR(10),SBI_VERSION_DE VARCHAR(10),META_VERSION VARCHAR(100),ORGANIZATION VARCHAR(20),CONSTRAINT XPKSBI_OBJ_STATE PRIMARY KEY(BIOBJ_ID,STATE_ID,START_DT),CONSTRAINT FK_SBI_OBJ_STATE_2 FOREIGN KEY(STATE_ID) REFERENCES SBI_DOMAINS(VALUE_ID))
CREATE MEMORY TABLE SBI_OBJECTS(BIOBJ_ID INTEGER NOT NULL,ENGINE_ID INTEGER,DESCR VARCHAR,LABEL VARCHAR(100),ENCRYPT SMALLINT,PATH VARCHAR,REL_NAME VARCHAR,STATE_ID INTEGER,STATE_CD VARCHAR,BIOBJ_TYPE_CD VARCHAR,BIOBJ_TYPE_ID INTEGER,SCHED_FL SMALLINT,EXEC_MODE_ID INTEGER,STATE_CONS_ID INTEGER,EXEC_MODE_CD VARCHAR,STATE_CONS_CD VARCHAR,NAME VARCHAR,VISIBLE SMALLINT,UUID VARCHAR,DATA_SOURCE_ID INTEGER,DATA_SET_ID INTEGER,CREATION_DATE TIMESTAMP,CREATION_USER VARCHAR,REFRESH_SECONDS INTEGER,PROF_VISIBILITY VARCHAR(400),PREVIEW_FILE VARCHAR(100),USER_IN VARCHAR(100) DEFAULT '' NOT NULL,USER_UP VARCHAR(100),USER_DE VARCHAR(100),TIME_IN TIMESTAMP DEFAULT NOW NOT NULL,TIME_UP TIMESTAMP,TIME_DE TIMESTAMP,SBI_VERSION_IN VARCHAR(10),SBI_VERSION_UP VARCHAR(10),SBI_VERSION_DE VARCHAR(10),META_VERSION VARCHAR(100),ORGANIZATION VARCHAR(20),CONSTRAINT XPKSBI_OBJECTS PRIMARY KEY(BIOBJ_ID),CONSTRAINT FK_SBI_OBJECTS_1 FOREIGN KEY(STATE_CONS_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT FK_SBI_OBJECTS_2 FOREIGN KEY(STATE_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT FK_SBI_OBJECTS_3 FOREIGN KEY(BIOBJ_TYPE_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT FK_SBI_OBJECTS_4 FOREIGN KEY(EXEC_MODE_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT XAK1SBI_OBJECTS UNIQUE(LABEL,ORGANIZATION))
CREATE MEMORY TABLE SBI_OBJECTS(BIOBJ_ID INTEGER NOT NULL,ENGINE_ID INTEGER,DESCR VARCHAR,LABEL VARCHAR(100),ENCRYPT SMALLINT,PATH VARCHAR,REL_NAME VARCHAR,STATE_ID INTEGER,STATE_CD VARCHAR,BIOBJ_TYPE_CD VARCHAR,BIOBJ_TYPE_ID INTEGER,SCHED_FL SMALLINT,EXEC_MODE_ID INTEGER,STATE_CONS_ID INTEGER,EXEC_MODE_CD VARCHAR,STATE_CONS_CD VARCHAR,NAME VARCHAR,VISIBLE SMALLINT,UUID VARCHAR,DATA_SOURCE_ID INTEGER,DATA_SET_ID INTEGER,CREATION_DATE TIMESTAMP,CREATION_USER VARCHAR,REFRESH_SECONDS INTEGER,PROF_VISIBILITY VARCHAR(400),PREVIEW_FILE VARCHAR(100), PARAMETERS_REGION VARCHAR(20), USER_IN VARCHAR(100) DEFAULT '' NOT NULL,USER_UP VARCHAR(100),USER_DE VARCHAR(100),TIME_IN TIMESTAMP DEFAULT NOW NOT NULL,TIME_UP TIMESTAMP,TIME_DE TIMESTAMP,SBI_VERSION_IN VARCHAR(10),SBI_VERSION_UP VARCHAR(10),SBI_VERSION_DE VARCHAR(10),META_VERSION VARCHAR(100),ORGANIZATION VARCHAR(20),CONSTRAINT XPKSBI_OBJECTS PRIMARY KEY(BIOBJ_ID),CONSTRAINT FK_SBI_OBJECTS_1 FOREIGN KEY(STATE_CONS_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT FK_SBI_OBJECTS_2 FOREIGN KEY(STATE_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT FK_SBI_OBJECTS_3 FOREIGN KEY(BIOBJ_TYPE_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT FK_SBI_OBJECTS_4 FOREIGN KEY(EXEC_MODE_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT XAK1SBI_OBJECTS UNIQUE(LABEL,ORGANIZATION))
CREATE MEMORY TABLE SBI_OBJECTS_RATING(USER_ID VARCHAR(127) NOT NULL,OBJ_ID INTEGER NOT NULL,RATING INTEGER NOT NULL,USER_IN VARCHAR(100) DEFAULT '' NOT NULL,USER_UP VARCHAR(100),USER_DE VARCHAR(100),TIME_IN TIMESTAMP DEFAULT NOW NOT NULL,TIME_UP TIMESTAMP,TIME_DE TIMESTAMP,SBI_VERSION_IN VARCHAR(10),SBI_VERSION_UP VARCHAR(10),SBI_VERSION_DE VARCHAR(10),META_VERSION VARCHAR(100),ORGANIZATION VARCHAR(20),CONSTRAINT XPKSBI_OBJECTS_RATING PRIMARY KEY(USER_ID,OBJ_ID),CONSTRAINT FK_SBI_OBJECTS_RATING_1 FOREIGN KEY(OBJ_ID) REFERENCES SBI_OBJECTS(BIOBJ_ID) ON DELETE CASCADE ON UPDATE CASCADE)
CREATE MEMORY TABLE SBI_PARAMETERS(PAR_ID INTEGER NOT NULL,FUNCTIONAL_FLAG SMALLINT DEFAULT 1 NOT NULL,TEMPORAL_FLAG SMALLINT DEFAULT 0 NOT NULL,DESCR VARCHAR,LENGTH SMALLINT,LABEL VARCHAR,PAR_TYPE_CD VARCHAR,MASK VARCHAR,PAR_TYPE_ID INTEGER,NAME VARCHAR,USER_IN VARCHAR(100) DEFAULT '' NOT NULL,USER_UP VARCHAR(100),USER_DE VARCHAR(100),TIME_IN TIMESTAMP DEFAULT NOW NOT NULL,TIME_UP TIMESTAMP,TIME_DE TIMESTAMP,SBI_VERSION_IN VARCHAR(10),SBI_VERSION_UP VARCHAR(10),SBI_VERSION_DE VARCHAR(10),META_VERSION VARCHAR(100),ORGANIZATION VARCHAR(20),CONSTRAINT XPKSBI_PARAMETERS PRIMARY KEY(PAR_ID),CONSTRAINT FK_SBI_PARAMETERS_1 FOREIGN KEY(PAR_TYPE_ID) REFERENCES SBI_DOMAINS(VALUE_ID),CONSTRAINT XAK1SBI_PARAMETERS UNIQUE(LABEL,ORGANIZATION))
CREATE MEMORY TABLE SBI_PARUSE(USE_ID INTEGER NOT NULL,LOV_ID INTEGER,DEFAULT_LOV_ID INTEGER,DEFAULT_FORMULA VARCHAR(4000),LABEL VARCHAR,DESCR VARCHAR,PAR_ID INTEGER,NAME VARCHAR,MAN_IN INTEGER,SELECTION_TYPE VARCHAR DEFAULT 'LIST',MULTIVALUE_FLAG SMALLINT DEFAULT 0,USER_IN VARCHAR(100) DEFAULT '' NOT NULL,USER_UP VARCHAR(100),USER_DE VARCHAR(100),TIME_IN TIMESTAMP DEFAULT NOW NOT NULL,TIME_UP TIMESTAMP,TIME_DE TIMESTAMP,SBI_VERSION_IN VARCHAR(10),SBI_VERSION_UP VARCHAR(10),SBI_VERSION_DE VARCHAR(10),META_VERSION VARCHAR(100),ORGANIZATION VARCHAR(20),MAXIMIZER_ENABLED BOOLEAN DEFAULT false,CONSTRAINT XPKSBI_PARUSE PRIMARY KEY(USE_ID),CONSTRAINT FK_SBI_PARUSE_3 FOREIGN KEY(DEFAULT_LOV_ID) REFERENCES SBI_LOV(LOV_ID),CONSTRAINT FK_SBI_PARUSE_2 FOREIGN KEY(LOV_ID) REFERENCES SBI_LOV(LOV_ID),CONSTRAINT FK_SBI_PARUSE_1 FOREIGN KEY(PAR_ID) REFERENCES SBI_PARAMETERS(PAR_ID))
Expand Down
10 changes: 9 additions & 1 deletion SpagoBIDatabaseScripts/hystory_mysql.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2662,4 +2662,12 @@ ADD COLUMN MODEL_LOCKED BOOLEAN NULL,
ADD COLUMN MODEL_LOCKER VARCHAR(100) NULL;
COMMIT;

UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;
UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;

-- 25/06/2014

ALTER TABLE SBI_OBJECTS ADD COLUMN PARAMETERS_REGION VARCHAR(20) NULL DEFAULT 'east';

insert into SBI_CONFIG(ID,LABEL, NAME, DESCRIPTION, IS_ACTIVE, VALUE_CHECK, VALUE_TYPE_ID, USER_IN, TIME_IN, SBI_VERSION_IN, ORGANIZATION, CATEGORY) values
((SELECT next_val FROM hibernate_sequences WHERE sequence_name = 'SBI_CONFIG'),'SPAGOBI.DOCUMENTS.PARAMETERS_REGION_DEFAULT', 'Parameters Region Default', 'Where parameters form is shown (north or east) by default', '1', 'right', '30',
'biadmin', '2014-06-24 15:06:24', '4.2', 'SPAGOBI', 'GENERIC_CONFIGURATION')
9 changes: 9 additions & 0 deletions SpagoBIDatabaseScripts/hystory_postgres.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2447,3 +2447,12 @@ ADD COLUMN MODEL_LOCKER VARCHAR(100) NULL;

UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;s
COMMIT;

-- 25/06/2014

ALTER TABLE SBI_OBJECTS ADD COLUMN PARAMETERS_REGION VARCHAR(20) NULL DEFAULT 'east';

insert into SBI_CONFIG(ID,LABEL, NAME, DESCRIPTION, IS_ACTIVE, VALUE_CHECK, VALUE_TYPE_ID, USER_IN, TIME_IN, SBI_VERSION_IN, ORGANIZATION, CATEGORY) values
((SELECT next_val FROM hibernate_sequences WHERE sequence_name = 'SBI_CONFIG'),'SPAGOBI.DOCUMENTS.PARAMETERS_REGION_DEFAULT', 'Parameters Region Default', 'Where parameters form is shown (north or east) by default', '1', 'right', '30',
'biadmin', '2014-06-24 15:06:24', '4.2', 'SPAGOBI', 'GENERIC_CONFIGURATION')

1 change: 1 addition & 0 deletions SpagoBIDatabaseScripts/ingres/Ingres_create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ CREATE TABLE SBI_OBJECTS (
KEYWORDS VARCHAR(250),
REFRESH_SECONDS INTEGER,
PROF_VISIBILITY VARCHAR(400) NULL,
PARAMETERS_REGION VARCHAR(20) NULL,
USER_IN VARCHAR(100) NOT NULL,
USER_UP VARCHAR(100),
USER_DE VARCHAR(100),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ ADD COLUMN MODEL_LOCKER VARCHAR(100) NULL;

UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;

ALTER TABLE SBI_OBJECTS ADD COLUMN PARAMETERS_REGION VARCHAR(20) NULL;

COMMIT;\p\g


1 change: 1 addition & 0 deletions SpagoBIDatabaseScripts/mysql/MySQL_create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ CREATE TABLE SBI_OBJECTS (
REFRESH_SECONDS INTEGER,
PROF_VISIBILITY VARCHAR(400) NULL,
PREVIEW_FILE VARCHAR(100) NULL,
PARAMETERS_REGION VARCHAR(20) NULL,
USER_IN VARCHAR(100) NOT NULL,
USER_UP VARCHAR(100),
USER_DE VARCHAR(100),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ ADD COLUMN MODEL_LOCKED BOOLEAN NULL,
ADD COLUMN MODEL_LOCKER VARCHAR(100) NULL;

UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;

ALTER TABLE SBI_OBJECTS ADD COLUMN PARAMETERS_REGION VARCHAR(20) NULL DEFAULT 'east';

COMMIT;
1 change: 1 addition & 0 deletions SpagoBIDatabaseScripts/oracle/ORA_create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ CREATE TABLE SBI_OBJECTS (
REFRESH_SECONDS INTEGER DEFAULT 0,
PROF_VISIBILITY VARCHAR2 (400),
PREVIEW_FILE VARCHAR2(100) NULL,
PARAMETERS_REGION VARCHAR2(20) NULL,
USER_IN VARCHAR2(100) NOT NULL,
USER_UP VARCHAR2(100),
USER_DE VARCHAR2(100),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ ADD COLUMN MODEL_LOCKED SMALLINT NULL,
ADD COLUMN MODEL_LOCKER VARCHAR2(100) NULL;

UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;

ALTER TABLE SBI_OBJECTS ADD COLUMN PARAMETERS_REGION VARCHAR2(20);

COMMIT;
1 change: 1 addition & 0 deletions SpagoBIDatabaseScripts/postgres/PG_create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ CREATE TABLE SBI_OBJECTS (
REFRESH_SECONDS INTEGER,
PROF_VISIBILITY VARCHAR(400) NULL,
PREVIEW_FILE VARCHAR(100),
PARAMETERS_REGION VARCHAR(20) NULL,
USER_IN VARCHAR(100) NOT NULL,
USER_UP VARCHAR(100),
USER_DE VARCHAR(100),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ ADD COLUMN MODEL_LOCKED BOOLEAN NULL,
ADD COLUMN MODEL_LOCKER VARCHAR(100) NULL;

UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;

ALTER TABLE SBI_OBJECTS ADD COLUMN PARAMETERS_REGION VARCHAR(20) NULL;
COMMIT;
1 change: 1 addition & 0 deletions SpagoBIDatabaseScripts/sqlserver/SQLServer_create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ CREATE TABLE SBI_OBJECTS (
REFRESH_SECONDS INTEGER,
PROF_VISIBILITY VARCHAR(400) NULL,
PREVIEW_FILE VARCHAR(100) NULL,
PARAMETERS_REGION VARCHAR(20) NULL,
USER_IN VARCHAR(100) NOT NULL,
USER_UP VARCHAR(100),
USER_DE VARCHAR(100),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ ADD COLUMN MODEL_LOCKED BIT NULL,
ADD COLUMN MODEL_LOCKER VARCHAR(100) NULL;

UPDATE SBI_ARTIFACTS SET MODEL_LOCKED = false WHERE MODEL_LOCKED IS NULL;

ALTER TABLE SBI_OBJECTS ADD COLUMN PARAMETERS_REGION VARCHAR(20) NULL;
COMMIT;

0 comments on commit 68138ad

Please sign in to comment.