Commit bad8fd4e4f6fc3df074239161281033bd091de2d
1 parent
13253355
Exists in
master
Redmine #4783 Correções na contabilização da entrada do almoxarifado
Showing
1 changed file
with
15 additions
and
0 deletions
Show diff stats
cit-adm-materiais-api/src/main/resources/scripts-bd/postgres/v1.15.0/01-cit-adm-materiais-v1.15.0-postgres.sql
@@ -1502,4 +1502,19 @@ alter table alm_mc_unidmedidaentrada_aud add isPadrao boolean; | @@ -1502,4 +1502,19 @@ alter table alm_mc_unidmedidaentrada_aud add isPadrao boolean; | ||
1502 | 1502 | ||
1503 | -- GEOVANE 10/05/2016 | 1503 | -- GEOVANE 10/05/2016 |
1504 | ALTER TABLE alm_me_fifoitem DROP CONSTRAINT IF EXISTS uk_3pa241s7brr43ml1kgvlrb9e8; | 1504 | ALTER TABLE alm_me_fifoitem DROP CONSTRAINT IF EXISTS uk_3pa241s7brr43ml1kgvlrb9e8; |
1505 | + | ||
1506 | +ALTER TABLE alm_me_fifoitem ADD COLUMN entradaitem_id bigint, | ||
1507 | + ADD CONSTRAINT fk_fifoitem_entradaalmoxarifadoitem FOREIGN KEY (entradaitem_id) | ||
1508 | + REFERENCES alm_en_entradaitem (id) MATCH SIMPLE | ||
1509 | + ON UPDATE NO ACTION ON DELETE NO ACTION; | ||
1510 | + | ||
1511 | +ALTER TABLE alm_me_fifoitem_aud ADD COLUMN entradaitem_id bigint; | ||
1512 | + | ||
1513 | +ALTER TABLE alm_me_movimentoestoque ADD COLUMN materialestoqueinativo_id bigint, | ||
1514 | + ADD CONSTRAINT fk_movimentoestoque_materialestoqueinativo FOREIGN KEY (materialestoqueinativo_id) | ||
1515 | + REFERENCES alm_materialestoque (id) MATCH SIMPLE | ||
1516 | + ON UPDATE NO ACTION ON DELETE NO ACTION; | ||
1517 | + | ||
1518 | +ALTER TABLE alm_me_movimentoestoque_aud ADD COLUMN materialestoqueinativo_id bigint; | ||
1519 | + | ||
1505 | -- GEOVANE FIM 10/05/2016 | 1520 | -- GEOVANE FIM 10/05/2016 |
1506 | \ No newline at end of file | 1521 | \ No newline at end of file |