Skip to content

Commit

Permalink
#19 Actualització de model de BD
Browse files Browse the repository at this point in the history
  • Loading branch information
amaciam-indra committed Jul 9, 2018
1 parent fda24d5 commit 07f4db4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion sistrages/scripts/bbdd/1.0/oracle/sistrages_create_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ insert into STG_IDIOMA (IDI_IDENTI) VALUES ('ca');
insert into STG_IDIOMA (IDI_IDENTI) VALUES ('en');
insert into STG_IDIOMA (IDI_IDENTI) VALUES ('de');

Insert into STG_PROCES (PROC_IDENT,PROC_INSTAN,PROC_FECHA) values ('MAESTRO','NONE', sysdate);
insert into STG_PROCES (PROC_IDENT,PROC_INSTAN,PROC_FECHA) values ('MAESTRO','NONE', sysdate);

insert into STG_CNFGLO (CFG_CODIGO, CFG_PROP, CFG_VALOR, CFG_DESCR) values (STG_CNFGLO_SEQ.NEXTVAL, 'definicionTramite.lenguajeDefecto','ca','Lenguaje por defecto si no existe el lenguaje indicado');



SET SERVEROUTPUT ON;
DECLARE
Expand Down
14 changes: 13 additions & 1 deletion sistrages/scripts/bbdd/1.0/oracle/sistrages_create_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,7 @@ create table STG_FORPLT
(
PLT_CODIGO NUMBER(18) not null,
PLT_CODFOR NUMBER(18) not null,
PLT_IDENTI VARCHAR2(20) not null,
PLT_CODFMT NUMBER(18) not null,
PLT_DESCRI VARCHAR2(255 CHAR) not null,
PLT_DEFECT NUMBER(1) default 0 not null
Expand All @@ -1228,6 +1229,9 @@ comment on column STG_FORPLT.PLT_CODIGO is
comment on column STG_FORPLT.PLT_CODFOR is
'Código formulario';

comment on column STG_FORPLT.PLT_IDENTI is
'Identificador plantilla';

comment on column STG_FORPLT.PLT_CODFMT is
'Código formateador';

Expand All @@ -1240,6 +1244,14 @@ comment on column STG_FORPLT.PLT_DEFECT is
alter table STG_FORPLT
add constraint STG_FORPLT_PK primary key (PLT_CODIGO);

/*==============================================================*/
/* Index: STG_FORPLT_IDENTI_UK */
/*==============================================================*/
create unique index STG_FORPLT_IDENTI_UK on STG_FORPLT (
PLT_CODFOR ASC,
PLT_IDENTI ASC
);

/*==============================================================*/
/* Table: STG_FORSEC */
/*==============================================================*/
Expand Down Expand Up @@ -2344,7 +2356,7 @@ comment on column STG_VERTRA.VTR_AUTENO is
'Indica si no es autenticado';

comment on column STG_VERTRA.VTR_IDISOP is
'Idiomas soportados (lista de idiomas separados por coma)';
'Idiomas soportados (lista de idiomas separados por punto y coma)';

comment on column STG_VERTRA.VTR_PERSIS is
'Indica si admite persistencia';
Expand Down

0 comments on commit 07f4db4

Please sign in to comment.