fixes bug#24573
dev:lucas qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@112846 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2305fa6f76
commit
79a88802d6
|
@ -0,0 +1,11 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
except_00957 exception;
|
||||
pragma exception_init (object_exists , -01430);
|
||||
pragma exception_init (except_00957 , -00957);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE GP_PRICING ADD (VALOREXTRA NUMBER(7,2) )';
|
||||
exception
|
||||
when object_exists then null;
|
||||
when except_00957 then null;
|
||||
end;
|
|
@ -0,0 +1,58 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'CREATE SEQUENCE "MACON_VDA_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
/
|
||||
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate 'CREATE SEQUENCE "MACON_VDA_MANUAL_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
/
|
||||
|
||||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE BOLETO ADD (NUM_MACON VARCHAR2(9))';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
||||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE BOLETO ADD (NUMSERIE_MACON VARCHAR2(4))';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate
|
||||
'CREATE TABLE CTRL_SERIE_MACON
|
||||
(
|
||||
CTRLSERIEMACON_ID NUMBER(7) NOT NULL
|
||||
, NUMSERIE VARCHAR2(4) NOT NULL
|
||||
, EMPRESA_ID NUMBER(7)
|
||||
, FECMODIF DATE
|
||||
, USUARIO_ID NUMBER(7)
|
||||
, ACTIVO NUMBER(1)
|
||||
, CONSTRAINT CTRL_SERIE_MACON_PK PRIMARY KEY
|
||||
(
|
||||
CTRLSERIEMACON_ID
|
||||
)
|
||||
ENABLE
|
||||
)';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
/
|
Loading…
Reference in New Issue