fixes bug#15001
dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@96059 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
0eaca808da
commit
797f75c7fa
|
@ -0,0 +1,16 @@
|
|||
-- ALTER TABLE ADD COLUMN
|
||||
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 '...';
|
||||
exception
|
||||
when object_exists then null;
|
||||
when except_01451 then null;
|
||||
when except_01442 then null;
|
||||
end;
|
|
@ -0,0 +1,19 @@
|
|||
-- CREATE CONSTRAINT / FK
|
||||
declare
|
||||
object_exists exception;
|
||||
except_02275 exception;
|
||||
except_02270 exception;
|
||||
except_02261 exception;
|
||||
|
||||
pragma exception_init (object_exists , -01430);
|
||||
pragma exception_init (except_02275 , -02275);
|
||||
pragma exception_init (except_02270 , -02270);
|
||||
pragma exception_init (except_02261 , -02261);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception
|
||||
when object_exists then null;
|
||||
when except_02275 then null;
|
||||
when except_02270 then null;
|
||||
when except_02261 then null;
|
||||
end;
|
|
@ -0,0 +1,13 @@
|
|||
-- CREATE INDEX
|
||||
declare
|
||||
object_exists exception;
|
||||
except_01408 exception;
|
||||
|
||||
pragma exception_init (object_exists , -00955);
|
||||
pragma exception_init (except_01408 , -01408);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception
|
||||
when object_exists then null;
|
||||
when except_01408 then null;
|
||||
end;
|
|
@ -0,0 +1,8 @@
|
|||
-- CREATE SEQUENCE
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,8 @@
|
|||
-- CREATE TABLE/CREATE SEQUENCE
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00955);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,13 @@
|
|||
-- ALTER TABLE DROP COLUMN
|
||||
declare
|
||||
object_exists exception;
|
||||
except_00904 exception;
|
||||
|
||||
pragma exception_init (object_exists , -01430);
|
||||
pragma exception_init (except_00904 , -00904);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception
|
||||
when object_exists then null;
|
||||
when except_00904 then null;
|
||||
end;
|
|
@ -0,0 +1,9 @@
|
|||
-- DROP FUNCTION
|
||||
declare
|
||||
except_04043 exception;
|
||||
pragma exception_init (except_04043, -04043);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception
|
||||
when except_04043 then null;
|
||||
end;
|
|
@ -0,0 +1,8 @@
|
|||
-- DROP INDEX
|
||||
declare
|
||||
indice_nao_existe exception;
|
||||
pragma exception_init (indice_nao_existe , -01418);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception when indice_nao_existe then null;
|
||||
end;
|
|
@ -0,0 +1,8 @@
|
|||
-- DROP SEQUENCE
|
||||
declare
|
||||
except_02289 exception;
|
||||
pragma exception_init (except_02289, -02289);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception when except_02289 then null;
|
||||
end;
|
|
@ -0,0 +1,8 @@
|
|||
-- DROP TABLE
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00942);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception when object_exists then null;
|
||||
end;
|
|
@ -0,0 +1,8 @@
|
|||
-- DROP TRIGGER
|
||||
declare
|
||||
except_04080 exception;
|
||||
pragma exception_init (except_04080, -04080);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception when except_04080 then null;
|
||||
end;
|
|
@ -0,0 +1,13 @@
|
|||
-- INSERT / UPDATE
|
||||
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 '...';
|
||||
exception
|
||||
when dup_val_on_index then null;
|
||||
when except_02291 then null;
|
||||
end;
|
|
@ -0,0 +1,13 @@
|
|||
-- ALTER TABLE RENAME COLUMN
|
||||
declare
|
||||
object_exists exception;
|
||||
except_00957 exception;
|
||||
|
||||
pragma exception_init (object_exists , -01430);
|
||||
pragma exception_init (except_00957 , -00957);
|
||||
begin
|
||||
execute immediate '...';
|
||||
exception
|
||||
when object_exists then null;
|
||||
when except_00957 then null;
|
||||
end;
|
Loading…
Reference in New Issue