Commit c55a00e83ad35a484d0239c642d109d19f9aba8e

Authored by erick.sato
2 parents 43bc2b6c 2e9d4938
Exists in master

Merge branch 'tarefa-3822' of http://ferramentasgo.centralit.com.br:8080/scm/git…

…/cit-grp-adm-materiais into tarefa-3822
cit-adm-materiais-api/src/main/resources/scripts-bd/postgres/v1.16.0/01-cit-adm-materiais-v1.16.0-postgres.sql
... ... @@ -11,15 +11,15 @@ VALUES
11 11 (NEXTVAL('hibernate_sequence'), LOCALTIMESTAMP, LOCALTIMESTAMP, NULL, 0, 'tipoStatusRequisicao', 'Finalizada', 'FINALIZADA', 5, false);
12 12 -- ERICK FIM 16/05/2016
13 13  
14   --- RONAM INICIO 18/05/2016
  14 +-- RONAN INICIO 18/05/2016
15 15  
16   -ALTER TABLE public.alm_rc_atendimentoitem ADD COLUMN materiallocalestoque_id bigint;
17   -ALTER TABLE public.alm_rc_atendimentoitem
  16 +ALTER TABLE alm_rc_atendimentoitem ADD COLUMN materiallocalestoque_id bigint;
  17 +ALTER TABLE alm_rc_atendimentoitem
18 18 ADD CONSTRAINT fk_hx3srtvuubkwfds6s3bckj3yp FOREIGN KEY (materiallocalestoque_id)
19 19 REFERENCES public.alm_me_localestoque (id) MATCH SIMPLE
20 20 ON UPDATE NO ACTION ON DELETE NO ACTION;
21 21  
22   --- RONAM FIM 18/05/2016
  22 +-- RONAN FIM 18/05/2016
23 23  
24 24  
25 25 -- ERICK INICIO 19/05/2016
... ... @@ -145,4 +145,33 @@ ALTER TABLE alm_requisicaoconsumo_aud ADD COLUMN atendente_id BIGINT;
145 145  
146 146 ALTER TABLE ONLY alm_requisicaoconsumo
147 147 ADD CONSTRAINT fk_req_atendente FOREIGN KEY (atendente_id) REFERENCES seguranca_usuario(id);
148   --- ERICK FIM 20/05/2016
149 148 \ No newline at end of file
  149 +-- ERICK FIM 20/05/2016
  150 +
  151 +-- RONAN INICIO 19/05/2016
  152 +
  153 +alter table alm_rc_atendimentoitem drop column quantidade;
  154 +alter table alm_rc_atendimentoitem drop constraint fk_hx3srtvuubkwfds6s3bckj3yp;
  155 +alter table alm_rc_atendimentoitem drop column materiallocalestoque_id;
  156 +
  157 +CREATE TABLE alm_rc_at_item_endereco
  158 +(
  159 + id bigint NOT NULL,
  160 + databloqueio date,
  161 + datainativo date,
  162 + quantidade numeric(19,2),
  163 + inativador_id bigint,
  164 + at_req_consumoitem_id bigint NOT NULL,
  165 + materiallocalestoque_id bigint NOT NULL,
  166 + CONSTRAINT alm_rc_at_item_endereco_pkey PRIMARY KEY (id),
  167 + CONSTRAINT fk_7ep45inuirh29oxc70t085n7t FOREIGN KEY (at_req_consumoitem_id)
  168 + REFERENCES public.alm_rc_atendimentoitem (id) MATCH SIMPLE
  169 + ON UPDATE NO ACTION ON DELETE NO ACTION,
  170 + CONSTRAINT fk_9tdi5v43fn5qtt3n4wn2c9ma4 FOREIGN KEY (materiallocalestoque_id)
  171 + REFERENCES public.alm_me_localestoque (id) MATCH SIMPLE
  172 + ON UPDATE NO ACTION ON DELETE NO ACTION,
  173 + CONSTRAINT fk_g385pn6ltxma9nmkq8sohtkw2 FOREIGN KEY (inativador_id)
  174 + REFERENCES public.seguranca_usuario (id) MATCH SIMPLE
  175 + ON UPDATE NO ACTION ON DELETE NO ACTION
  176 +)
  177 +
  178 +-- RONAN FIM 19/05/2016
150 179 \ No newline at end of file
... ...