From 9f1babd3ce6911ebf665e06035ccc17744bab8da Mon Sep 17 00:00:00 2001 From: emerson Date: Fri, 8 Feb 2019 19:40:31 +0000 Subject: [PATCH] fixes bug#0013539 dev: tiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@89706 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190208_1520__mantis13539.sql | 11 +++++++++++ .../migration/V20190208_1520__mantis13539.sql | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 src/db/migration/V20190208_1520__mantis13539.sql create mode 100644 src/db/postgresql/migration/V20190208_1520__mantis13539.sql diff --git a/src/db/migration/V20190208_1520__mantis13539.sql b/src/db/migration/V20190208_1520__mantis13539.sql new file mode 100644 index 000000000..b906be90c --- /dev/null +++ b/src/db/migration/V20190208_1520__mantis13539.sql @@ -0,0 +1,11 @@ +declare + begin + execute immediate 'CREATE SEQUENCE FISCAL_J1 START WITH 1 INCREMENT BY 1'; + exception when others then null; +end; +/ +declare + begin + execute immediate 'CREATE SEQUENCE FISCAL_J2_SEQ START WITH 1 INCREMENT BY 1'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190208_1520__mantis13539.sql b/src/db/postgresql/migration/V20190208_1520__mantis13539.sql new file mode 100644 index 000000000..98a0a6cdc --- /dev/null +++ b/src/db/postgresql/migration/V20190208_1520__mantis13539.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + CREATE SEQUENCE FISCAL_J1 INCREMENT BY 1 START WITH 1; + CREATE SEQUENCE FISCAL_J2 INCREMENT BY 1 START WITH 1; +END +$$; \ No newline at end of file