15274: Diminuir o tamanho do nome dos campos
fixes bug#15274 dev:gleimar qua:leonardo Testado no banco de testes do uruguai, que estava dando problema. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@96518 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
680378c128
commit
791515df24
|
@ -1,25 +0,0 @@
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
except_00957 exception;
|
|
||||||
|
|
||||||
pragma exception_init (object_exists , -01430);
|
|
||||||
pragma exception_init (except_00957 , -00957);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA RENAME COLUMN INDIMPRIMELOGOBILHETEVENDAEMBARCADA TO INDIMPLOGOBILHETEVTAEMBARCADA';
|
|
||||||
exception
|
|
||||||
when object_exists then null;
|
|
||||||
when except_00957 then null;
|
|
||||||
end;
|
|
||||||
/
|
|
||||||
declare
|
|
||||||
object_exists exception;
|
|
||||||
except_00957 exception;
|
|
||||||
|
|
||||||
pragma exception_init (object_exists , -01430);
|
|
||||||
pragma exception_init (except_00957 , -00957);
|
|
||||||
begin
|
|
||||||
execute immediate 'ALTER TABLE EMPRESA RENAME COLUMN INDIMPRIMERELFECHAMENTODETALHADOEMBARCADA TO INDIMPRIMERELFECHDETEMBARCADA';
|
|
||||||
exception
|
|
||||||
when object_exists then null;
|
|
||||||
when except_00957 then null;
|
|
||||||
end;
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
declare
|
||||||
|
dup_val_on_index exception;
|
||||||
|
except_02291 exception;
|
||||||
|
|
||||||
|
pragma exception_init (dup_val_on_index , -00001);
|
||||||
|
pragma exception_init (except_02291 , -02291);
|
||||||
|
begin
|
||||||
|
execute immediate 'update empresa set INDIMPLOGOBILHETEVTAEMBARCADA = INDIMPRIMELOGOBILHETEVENDAEMBARCADA, INDIMPRIMERELFECHDETEMBARCADA = INDIMPRIMERELFECHAMENTODETALHADOEMBARCADA';
|
||||||
|
exception
|
||||||
|
when dup_val_on_index then null;
|
||||||
|
when except_02291 then null;
|
||||||
|
when others then null;
|
||||||
|
end;
|
|
@ -0,0 +1,31 @@
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_01451 exception;
|
||||||
|
except_01442 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_01451 , -01451);
|
||||||
|
pragma exception_init (except_01442 , -01442);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE EMPRESA ADD (INDIMPLOGOBILHETEVTAEMBARCADA NUMBER(1) )';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_01451 then null;
|
||||||
|
when except_01442 then null;
|
||||||
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
object_exists exception;
|
||||||
|
except_01451 exception;
|
||||||
|
except_01442 exception;
|
||||||
|
|
||||||
|
pragma exception_init (object_exists , -01430);
|
||||||
|
pragma exception_init (except_01451 , -01451);
|
||||||
|
pragma exception_init (except_01442 , -01442);
|
||||||
|
begin
|
||||||
|
execute immediate 'ALTER TABLE EMPRESA ADD (INDIMPRIMERELFECHDETEMBARCADA NUMBER(1) )';
|
||||||
|
exception
|
||||||
|
when object_exists then null;
|
||||||
|
when except_01451 then null;
|
||||||
|
when except_01442 then null;
|
||||||
|
end;
|
Loading…
Reference in New Issue