diff --git a/pom.xml b/pom.xml index c3f70bc7e..7cb1c7eac 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.0.23 + 1.0.24 diff --git a/src/db/migration/V20230303_1423__AL2074.sql b/src/db/migration/V20230303_1423__AL2074.sql new file mode 100644 index 000000000..b7d505ee4 --- /dev/null +++ b/src/db/migration/V20230303_1423__AL2074.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE USUARIO ADD INDTROCASENHA NUMBER(1,0)' ; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20230303_1423__AL2074.sql b/src/db/postgresql/migration/V20230303_1423__AL2074.sql new file mode 100644 index 000000000..b7d505ee4 --- /dev/null +++ b/src/db/postgresql/migration/V20230303_1423__AL2074.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE USUARIO ADD INDTROCASENHA NUMBER(1,0)' ; + exception when column_exists then null; +end; \ No newline at end of file