From 0c84f2cf88627f91818d1ce1acdae703011071ab Mon Sep 17 00:00:00 2001 From: julio Date: Mon, 14 Nov 2016 18:37:24 +0000 Subject: [PATCH] bug #8121 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@62596 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20161114_1645__mantis8121.sql | 16 ++++++++++++++++ src/db/migration/V20161114_1647__mantis8121.sql | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100644 src/db/migration/V20161114_1645__mantis8121.sql create mode 100644 src/db/migration/V20161114_1647__mantis8121.sql diff --git a/src/db/migration/V20161114_1645__mantis8121.sql b/src/db/migration/V20161114_1645__mantis8121.sql new file mode 100644 index 000000000..31a97d626 --- /dev/null +++ b/src/db/migration/V20161114_1645__mantis8121.sql @@ -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; \ No newline at end of file diff --git a/src/db/migration/V20161114_1647__mantis8121.sql b/src/db/migration/V20161114_1647__mantis8121.sql new file mode 100644 index 000000000..76b0354c7 --- /dev/null +++ b/src/db/migration/V20161114_1647__mantis8121.sql @@ -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;