From 00481033d4ef72b6b2b564a7229ab12d82d4f047 Mon Sep 17 00:00:00 2001 From: "Carlos E. Feria Vila" Date: Mon, 11 Apr 2022 21:54:23 +0200 Subject: [PATCH] Fix DB types (#219) --- pom.xml | 2 +- .../resources/db/migration/V3.1.1__Upgrade.sql | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/db/migration/V3.1.1__Upgrade.sql diff --git a/pom.xml b/pom.xml index 6ee2dec8..c55e8a48 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ io.github.project-openubl searchpe - 3.2.0-SNAPSHOT + 3.1.1-SNAPSHOT 11 diff --git a/src/main/resources/db/migration/V3.1.1__Upgrade.sql b/src/main/resources/db/migration/V3.1.1__Upgrade.sql new file mode 100644 index 00000000..f5d9ef74 --- /dev/null +++ b/src/main/resources/db/migration/V3.1.1__Upgrade.sql @@ -0,0 +1,15 @@ +ALTER TABLE VERSION +ALTER +COLUMN id TYPE int8; + +ALTER TABLE VERSION +ALTER +COLUMN version TYPE int4; + +ALTER TABLE BASIC_USER +ALTER +COLUMN version TYPE int4; + +ALTER TABLE CONTRIBUYENTE +ALTER +COLUMN version_id TYPE int8;