Commit 2d6de7f4ec25fbc83c165a035d51acbc6c4400da
1 parent
16f4c3d1
Exists in
master
Redmine #4678 - arrumando unidades padrao nos clientes
Showing
1 changed file
with
46 additions
and
0 deletions
Show diff stats
cit-tabelas-corp-api/src/main/resources/scripts-migracao/postgres/v1.15.0/01-cit-tabelas-corp-v1.15.0-postgres.sql
0 → 100644
@@ -0,0 +1,46 @@ | @@ -0,0 +1,46 @@ | ||
1 | +--Juliana 10-05-2016 | ||
2 | +--########################################################################### | ||
3 | +--########## ATENÇÃO NOS CLIENTES ########################################### | ||
4 | +--########################################################################### | ||
5 | + | ||
6 | +--Script deve ser rodado somente no cliente MPOG | ||
7 | + | ||
8 | +update unidademedida | ||
9 | +set quantidadepadrao = 100 | ||
10 | +where codigo = '059' and quantidadepadrao is null; | ||
11 | + | ||
12 | +update unidademedida | ||
13 | +set quantidadepadrao = 1000 | ||
14 | +where codigo = '063' and quantidadepadrao is null; | ||
15 | + | ||
16 | + | ||
17 | +update unidademedida | ||
18 | +set quantidadepadrao = 1 | ||
19 | +where quantidadepadrao is null; | ||
20 | + | ||
21 | +--Script deve ser rodado somente no cliente ICMBIO | ||
22 | + | ||
23 | +update unidademedida | ||
24 | +set quantidadepadrao = 1000 | ||
25 | +where codigo IN ('011', '108') and quantidadepadrao is null; | ||
26 | + | ||
27 | +update unidademedida | ||
28 | +set quantidadepadrao = 100 | ||
29 | +where codigo IN ('003', '008', '110', '112', '009') and quantidadepadrao is null; | ||
30 | + | ||
31 | +update unidademedida | ||
32 | +set quantidadepadrao = 24 | ||
33 | +where codigo IN ('117') and quantidadepadrao is null; | ||
34 | + | ||
35 | + | ||
36 | +update unidademedida | ||
37 | +set quantidadepadrao = 1 | ||
38 | +where quantidadepadrao is null; | ||
39 | + | ||
40 | +--Demais clientes | ||
41 | + | ||
42 | +update unidademedida | ||
43 | +set quantidadepadrao = 1 | ||
44 | +where quantidadepadrao is null; | ||
45 | + | ||
46 | +--Juliana 10-05-2016 | ||
0 | \ No newline at end of file | 47 | \ No newline at end of file |