Commit 519b3cfb5a4a138e25f69806bf04060c0dcf11d0
1 parent
fe27571a
Exists in
master
Redmine #5144 - inclusao de tabela nao criada pelo jpa no script inicial de migracao
Showing
1 changed file
with
33 additions
and
0 deletions
Show diff stats
cit-adm-materiais-api/src/main/resources/scripts-bd/Migracao_MPOG/00-AjustesIniciais.sql
... | ... | @@ -126,6 +126,39 @@ |
126 | 126 | CREATE INDEX ix01_materialestoquesaldo_dataRef ON public.alm_me_saldo (datareferencia); |
127 | 127 | -- #FIM :: ALTERACOES ESPECIFICAS PARA MIGRACAO |
128 | 128 | |
129 | +-- #INI :: CRIAÇÃO TABELA AUDITORIA DADOSBEMPATRIMONIAL :: NÃO ANOTADA NO JPA | |
130 | + -- Table: dadosbempatrimonial_aud | |
131 | + | |
132 | + -- DROP TABLE dadosbempatrimonial_aud; | |
133 | + | |
134 | + CREATE TABLE dadosbempatrimonial_aud | |
135 | + ( | |
136 | + id bigint NOT NULL, | |
137 | + version bigint, | |
138 | + responsavel_id bigint, | |
139 | + detentor_id bigint, | |
140 | + databloqueio date, | |
141 | + datainativo date, | |
142 | + datacriacao timestamp without time zone, | |
143 | + dataedicao timestamp without time zone, | |
144 | + copiadedadosfinal boolean, | |
145 | + numeropatrimonial character varying(50), | |
146 | + valorliquido numeric(20,4), | |
147 | + autor_id bigint, | |
148 | + editor_id bigint, | |
149 | + bempatrimonial_id bigint, | |
150 | + bempatrimonialprincipal_id bigint, | |
151 | + dominiolocalinconsistencia_id bigint, | |
152 | + dominiosituacaofisica_id bigint, | |
153 | + dominiostatus_id bigint, | |
154 | + dominiostatusinventariobem_id bigint, | |
155 | + unidadeatual_id bigint, | |
156 | + inventariobempatrimonial_id bigint, | |
157 | + inventariounidade_id bigint, | |
158 | + material_id bigint | |
159 | + ); | |
160 | +-- #FIM :: CRIAÇÃO TABELA AUDITORIA DADOSBEMPATRIMONIAL :: NÃO ANOTADA NO JPA | |
161 | + | |
129 | 162 | |
130 | 163 | BEGIN; -- #INI :: ACRESCENTANDO DOMINIOS |
131 | 164 | ... | ... |