From d81ad91423a378362a6c1e843f47da4589e647e2 Mon Sep 17 00:00:00 2001 From: "jhonatas.alves" Date: Wed, 30 Jun 2021 17:18:00 +0000 Subject: [PATCH] =?UTF-8?q?Criar=20estrutura=20no=20banco=20para=20que=20s?= =?UTF-8?q?aia=20da=20dependencia=20da=20tabela=20da=20WEB=20(constante)?= =?UTF-8?q?=20e=20possamos=20passar=20a=20ter=20maior=20controle=20nas=20p?= =?UTF-8?q?arametriza=C3=A7=C3=B5es.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@107616 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210630_1150__api27.sql | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/db/migration/V20210630_1150__api27.sql diff --git a/src/db/migration/V20210630_1150__api27.sql b/src/db/migration/V20210630_1150__api27.sql new file mode 100644 index 000000000..705efdf02 --- /dev/null +++ b/src/db/migration/V20210630_1150__api27.sql @@ -0,0 +1,24 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE TABLE PARAMETROS_ECOMERCE ( + PARAMETROSECOMERCE_ID INTEGER NOT NULL PRIMARY KEY, + CHAVE VARCHAR2(100) NOT NULL, + VALOR VARCHAR2(100) NOT NULL, + ACTIVO INTEGER NOT NULL, + FECMODIF DATE NOT NULL + )'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE PARAMETROS_ECOMERCE_SEQ MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE'; + exception when object_exists then null; +end; +/ \ No newline at end of file