47 lines
1.6 KiB
SQL
47 lines
1.6 KiB
SQL
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 ESQUEMA_CORRIDA ADD (ISFLEXBUS NUMBER(1,0), OCUPACAO_MINIMA NUMBER(7,0), HORAS_CONFIRMACAO NUMBER(7,0), MINUTOS_CONFIRMACAO NUMBER(7,0)) ';
|
|
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 CORRIDA ADD (ISFLEXBUS NUMBER(1,0), STATUSFLEXBUS NUMBER(1,0), OCUPACAO_MINIMA NUMBER(7,0), HORAS_CONFIRMACAO NUMBER(7,0), MINUTOS_CONFIRMACAO NUMBER(7,0), USUARIOFLEXBUS_ID NUMBER(7,0)) ';
|
|
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 PUNTO_VENTA ADD (INDRESERVAFLEXBUS NUMBER(1,0)) ';
|
|
exception
|
|
when object_exists then null;
|
|
when except_01451 then null;
|
|
when except_01442 then null;
|
|
end; |