Skip to content

Commit

Permalink
Modificate patch per aggiungere indice sul campo id_fr della tabella …
Browse files Browse the repository at this point in the history
…eventi.
  • Loading branch information
pintorig committed Jan 27, 2022
1 parent 822dc1e commit e93cd8b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/db/sql/mysql/patch/3.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -504,3 +504,9 @@ DROP INDEX unique_fr_1 ON fr;
DROP INDEX index_fr_1 ON fr;
CREATE UNIQUE INDEX index_fr_1 ON fr (cod_dominio,cod_flusso,data_ora_flusso);


-- 27/01/2022 Indice su id_fr nella tabella eventi
CREATE INDEX idx_evt_fk_fr ON eventi (id_fr);



5 changes: 5 additions & 0 deletions src/main/resources/db/sql/oracle/patch/3.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -614,3 +614,8 @@ update rendicontazioni set stato='ANOMALA', anomalie='007101#Il pagamento riferi
ALTER TABLE fr DROP CONSTRAINT unique_fr_1;
ALTER TABLE fr ADD CONSTRAINT unique_fr_1 UNIQUE (cod_flusso,data_ora_flusso);


-- 27/01/2022 Indice su id_fr nella tabella eventi
CREATE INDEX idx_evt_fk_fr ON eventi (id_fr);


5 changes: 5 additions & 0 deletions src/main/resources/db/sql/postgresql/patch/3.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -613,3 +613,8 @@ UPDATE rendicontazioni set stato='ALTRO_INTERMEDIARIO', anomalie=null where id i
ALTER TABLE fr DROP CONSTRAINT unique_fr_1;
ALTER TABLE fr ADD CONSTRAINT unique_fr_1 UNIQUE (cod_dominio,cod_flusso,data_ora_flusso);


-- 27/01/2022 Indice su id_fr nella tabella eventi
CREATE INDEX idx_evt_fk_fr ON eventi (id_fr);


6 changes: 6 additions & 0 deletions src/main/resources/db/sql/sqlserver/patch/3.5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -598,4 +598,10 @@ UPDATE rendicontazioni SET id_pagamento = pagamenti.id
ALTER TABLE fr DROP CONSTRAINT unique_fr_1;
ALTER TABLE fr ADD CONSTRAINT unique_fr_1 UNIQUE (cod_dominio,cod_flusso,data_ora_flusso);
CREATE UNIQUE INDEX index_fr_1 ON fr (cod_dominio,cod_flusso,data_ora_flusso);


-- 27/01/2022 Indice su id_fr nella tabella eventi
CREATE INDEX idx_evt_fk_fr ON eventi (id_fr);



0 comments on commit e93cd8b

Please sign in to comment.