bug #8121
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@62596 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
dddee443bc
commit
0c84f2cf88
|
@ -0,0 +1,16 @@
|
|||
declare
|
||||
table_exists exception;
|
||||
pragma exception_init (table_exists , -00955);
|
||||
begin
|
||||
execute immediate
|
||||
'CREATE TABLE REGION_METROPOLITANA
|
||||
(
|
||||
REGIONMETROPOLITANA_ID NUMBER(7,0) NOT NULL ENABLE,
|
||||
DESCREGION VARCHAR2(100),
|
||||
ACTIVO NUMBER(1,0),
|
||||
FECMODIF DATE,
|
||||
USUARIO_ID NUMBER(7,0),
|
||||
CONSTRAINT REGION_METROPOLITANA_PK PRIMARY KEY (REGIONMETROPOLITANA_ID)
|
||||
ENABLE)';
|
||||
exception when table_exists then null;
|
||||
end;
|
|
@ -0,0 +1,7 @@
|
|||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE PARADA ADD (REGIONMETROPOLITANA_ID NUMBER(7,0))';
|
||||
exception when column_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue