git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@68339 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2017-04-27 21:16:34 +00:00
parent 0adaad2d8f
commit 1f167356fc
7 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE DESCONTO_COMISSAO RENAME COLUMN PRECO TO PRECO_OLD';
exception when object_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE DESCONTO_COMISSAO ADD PRECO NUMBER(7,2)';
exception when object_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'UPDATE DESCONTO_COMISSAO SET PRECO = PRECO_OLD';
exception when object_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE TIPO_EVENTO_EXTRA ADD CVETIPOEVENTO VARCHAR2(30)';
exception when object_exists then null;
end;

View File

@ -0,0 +1,13 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'UPDATE TIPO_EVENTO_EXTRA
SET CVETIPOEVENTO = ''SEGURO_OPCIONAL''
WHERE TIPOEVENTOEXTRA_ID IN (
SELECT VALORCONSTANTE
FROM CONSTANTE
WHERE NOMBCONSTANTE = ''TIPO_EE_SEGURO_OPCIONAL''
)';
exception when object_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE COMISSAO ADD (RECEITA_BPR NUMBER(7,2), DEVOLVIDOS NUMBER(7,2))';
exception when object_exists then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE COMISSAO ADD (RECEITA_BRUTA_EXCESSOBAGAGEM NUMBER(7,2), RECEITA_BRUTA_SEGUROOPCIONAL NUMBER(7,2))';
exception when object_exists then null;
end;