diff --git a/pom.xml b/pom.xml index e30eb5ef2..aaf563a81 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 br.com.rjconsultores - Flyway + Flyway 1.0.12 diff --git a/src/db/migration/V20222709_1710__AL1328.sql b/src/db/migration/V20222709_1710__AL1328.sql deleted file mode 100644 index 610ce3b70..000000000 --- a/src/db/migration/V20222709_1710__AL1328.sql +++ /dev/null @@ -1,7 +0,0 @@ -declare - object_exists exception; - pragma exception_init (object_exists , -01430); -begin - execute immediate 'ALTER TABLE EVENTO_EXTRA ADD NUMERO_CONTROLE VARCHAR2(300)'; - exception when object_exists then null; -end; \ No newline at end of file diff --git a/src/db/migration/V20221912_0800__AL1626.sql b/src/db/migration/V20230103_0959__AL1626.sql similarity index 100% rename from src/db/migration/V20221912_0800__AL1626.sql rename to src/db/migration/V20230103_0959__AL1626.sql diff --git a/src/db/migration/V20230103_1002__AL1328.sql b/src/db/migration/V20230103_1002__AL1328.sql new file mode 100644 index 000000000..fe0ce0df1 --- /dev/null +++ b/src/db/migration/V20230103_1002__AL1328.sql @@ -0,0 +1,15 @@ +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); +begin + execute immediate 'ALTER TABLE EVENTO_EXTRA ADD NUMERO_CONTROLE VARCHAR2(300)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; \ No newline at end of file