Skip to content

Commit

Permalink
BRMO-387: Bump BRMO versie van 4.0.1-SNAPSHOT naar 5.0.0-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins committed Nov 26, 2024
1 parent d6f3a92 commit fcd2686
Show file tree
Hide file tree
Showing 37 changed files with 79 additions and 76 deletions.
4 changes: 2 additions & 2 deletions .build/ci/getlastRelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ MINOR="${NEXTRELEASE##*.}"
PREVMINOR=$(($MINOR-1))
PREVRELEASE=$MAJOR.$PREVMINOR

if [ $CURSNAPSHOT = "4.0.0-SNAPSHOT" ]
if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ]
then
PREVRELEASE="3.0.2"
PREVRELEASE="4.0.0"
fi
echo "Huidige snapshot:" $CURSNAPSHOT", vorige, te downloaden, release: "$PREVRELEASE", komende release: "$NEXTRELEASE

Expand Down
16 changes: 9 additions & 7 deletions .build/ci/oracle-execute-upgrade-extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ echo "Verwerk extra upgrade scripts voor: " $1
#!/usr/bin/env bash
export SQLPATH=./.build/ci

if [ $CURSNAPSHOT = "4.0.0-SNAPSHOT" ] && [ $1 = "rsgb" ]
if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "rsgb" ]
then
docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/FREE < ./datamodel/utility_scripts/oracle/202_delete_bag_brondocumenten.sql
docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/FREE < ./datamodel/extra_scripts/oracle/300_drop_bag_tabellen.sql
continue # nog geen extra scripts voor rsgb
# docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/FREE < ./datamodel/utility_scripts/oracle/202_delete_bag_brondocumenten.sql
fi

if [ $CURSNAPSHOT = "4.0.0-SNAPSHOT" ] && [ $1 = "staging" ]
if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "staging" ]
then
docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/FREE < ./datamodel/utility_scripts/oracle/1000_delete_bag_berichten.sql
continue # nog geen extra scripts voor staging
# docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/FREE < ./datamodel/utility_scripts/oracle/1000_delete_bag_berichten.sql
fi

if [ $CURSNAPSHOT = "4.0.0-SNAPSHOT" ] && [ $1 = "topnl" ]
if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "topnl" ]
then
docker exec -i oracle_brmo sqlplus -l -S sys/oracle@//localhost:1521/XE < ./datamodel/upgrade_scripts/3.0.2-4.0.0/oracle/topnl.sql
continue # nog geen extra scripts voor topnl
# docker exec -i oracle_brmo sqlplus -l -S sys/oracle@//localhost:1521/XE < ./datamodel/upgrade_scripts/3.0.2-4.0.0/oracle/topnl.sql
fi
4 changes: 2 additions & 2 deletions .build/ci/oracle-execute-upgrades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ MINOR="${NEXTRELEASE##*.}"
PREVMINOR=$(($MINOR-1))
PREVRELEASE=$MAJOR.$PREVMINOR

if [ $CURSNAPSHOT = "4.0.0-SNAPSHOT" ]
if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ]
then
PREVRELEASE="3.0.2"
PREVRELEASE="4.0.0"
fi

echo "Huidige snapshot:" $CURSNAPSHOT", vorige release: "$PREVRELEASE", komende release: "$NEXTRELEASE
Expand Down
12 changes: 7 additions & 5 deletions .build/ci/pgsql-execute-upgrade-extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ CURSNAPSHOT=$(grep "<version>.*<.version>" -m1 pom.xml | sed -e "s/^.*<version/<
echo "Huidige snapshot:" $CURSNAPSHOT
echo "Verwerk extra upgrade scripts voor: " $1

if [ $CURSNAPSHOT = "4.0.0-SNAPSHOT" ] && [ $1 = "rsgb" ]
if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "rsgb" ]
then
psql -U postgres -h localhost -d $1 -f ./datamodel/utility_scripts/postgresql/202_delete_bag_brondocumenten.sql
psql -U postgres -h localhost -d $1 -f ./datamodel/extra_scripts/postgresql/300_drop_bag_tabellen.sql
continue # nog geen extra scripts voor rsgb
# psql -U postgres -h localhost -d $1 -f ./datamodel/utility_scripts/postgresql/202_delete_bag_brondocumenten.sql
# psql -U postgres -h localhost -d $1 -f ./datamodel/extra_scripts/postgresql/300_drop_bag_tabellen.sql
fi

if [ $CURSNAPSHOT = "4.0.0-SNAPSHOT" ] && [ $1 = "staging" ]
if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "staging" ]
then
docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/XE < ./datamodel/utility_scripts/postgresql/1000_delete_bag_berichten.sql
continue # nog geen extra scripts voor staging
# docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/XE < ./datamodel/utility_scripts/postgresql/1000_delete_bag_berichten.sql
fi

4 changes: 2 additions & 2 deletions .build/ci/pgsql-execute-upgrades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ MINOR="${NEXTRELEASE##*.}"
PREVMINOR=$(($MINOR-1))
PREVRELEASE=$MAJOR.$PREVMINOR

if [ $CURSNAPSHOT = "4.0.0-SNAPSHOT" ]
if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ]
then
PREVRELEASE="3.0.2"
PREVRELEASE="4.0.0"
fi

echo "Huidige snapshot:" $CURSNAPSHOT", vorige release: "$PREVRELEASE", komende release: "$NEXTRELEASE
Expand Down
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Release | Datum | Ondersteund/supported | valid database versions (fully patched/mainstream support) | runtime (fully patched) |
|----------------|--------------|-----------------------|-------------------------------------------------------------------------------------------|---------------------------------------|
| 4.0.x-SNAPSHOT | | ❌ (development) | Current PostgreSQL 13 - 17 + PostGIS 3.5, Oracle 19c/21c/23ai + Spatial, 21 XE, 23ai Free | Java 17, Java 21, Tomcat 9, Docker 27 |
| 5.0.x-SNAPSHOT | | ❌ (development) | Current PostgreSQL 13 - 17 + PostGIS 3.5, Oracle 19c/21c/23ai + Spatial, 21 XE, 23ai Free | Java 17, Java 21, Tomcat 9, Docker 27 |
| 4.0.0 | 15-nov-2024 | ✔️ | PostgreSQL 13 - 17 + PostGIS 3.5, Oracle 19c/21c/23ai + Spatial, 21 XE, 23ai Free | Java 17, Java 21, Tomcat 9, Docker 27 |
| 3.0.2 | 7-feb-2024 | ✔️ (deprecated) | PostgreSQL 12 - 16 + PostGIS 3.4, Oracle 19c/21c + Spatial | Java 11, Tomcat 9, Docker 25 |
| 3.0.1 | 13-jul-2023 | ❌ (superceded) | PostgreSQL 11 - 15 + PostGIS 3.3, Oracle 19c/21c + Spatial | Java 11, Tomcat 9, Docker 24 |
Expand Down
2 changes: 1 addition & 1 deletion bag2-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SPDX-License-Identifier: MIT
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>bag2-loader</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion bgt-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SPDX-License-Identifier: MIT
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>bgt-loader</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-commandline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-commandline</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-dist</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-init-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-init-util</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-loader</artifactId>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.xml.XMLConstants;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import javax.xml.parsers.DocumentBuilder;
Expand Down Expand Up @@ -61,7 +60,7 @@ public NhrXMLReader(InputStream in) throws Exception {

// Split input naar multiple berichten
DOMResult r = new DOMResult();
Transformer transformer=splitTemplates.newTransformer();
Transformer transformer = splitTemplates.newTransformer();
StreamSource source = new StreamSource(in);
// Prevent external entity resolution
source.setSystemId("");
Expand Down
2 changes: 1 addition & 1 deletion brmo-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-persistence</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-proxyservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-proxyservice</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-service</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-soap-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-soap-util</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-stufbg204/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-stufbg204</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-taglib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-taglib</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-test-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-test-util</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion brmo-topnl-loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>brmo-topnl-loader</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion datamodel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>nl.b3p</groupId>
<artifactId>brmo</artifactId>
<version>4.0.1-SNAPSHOT</version>
<version>5.0.0-SNAPSHOT</version>
</parent>
<artifactId>datamodel</artifactId>
<packaging>pom</packaging>
Expand Down
9 changes: 0 additions & 9 deletions datamodel/upgrade_scripts/4.0.0-4.0.1/postgresql/staging.sql

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- upgrade Oracle BAG datamodel van 4.0.0 naar 4.0.1
-- upgrade Oracle BAG datamodel van 4.0.0 naar 5.0.0
--

WHENEVER SQLERROR EXIT SQL.SQLCODE
Expand All @@ -18,6 +18,6 @@ MERGE INTO brmo_metadata USING DUAL ON (naam = 'brmoversie') WHEN NOT MATCHED TH


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- upgrade Oracle BRK datamodel van 4.0.0 naar 4.0.1
-- upgrade Oracle BRK datamodel van 4.0.0 naar 5.0.0
--

WHENEVER SQLERROR EXIT SQL.SQLCODE
Expand All @@ -18,6 +18,6 @@ MERGE INTO brmo_metadata USING DUAL ON (naam = 'brmoversie') WHEN NOT MATCHED TH


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--
-- upgrade Oracle RSGB datamodel van 4.0.0 naar 4.0.1
-- upgrade Oracle RSGB datamodel van 4.0.0 naar 5.0.0
--

WHENEVER SQLERROR EXIT SQL.SQLCODE


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- upgrade Oracle RSGBBGT datamodel van 4.0.0 naar 4.0.1
-- upgrade Oracle RSGBBGT datamodel van 4.0.0 naar 5.0.0
--

WHENEVER SQLERROR EXIT SQL.SQLCODE
Expand All @@ -18,6 +18,6 @@ MERGE INTO brmo_metadata USING DUAL ON (naam = 'brmoversie') WHEN NOT MATCHED TH


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--
-- upgrade Oracle STAGING datamodel van 4.0.0 naar 4.0.1
-- upgrade Oracle STAGING datamodel van 4.0.0 naar 5.0.0
--

WHENEVER SQLERROR EXIT SQL.SQLCODE


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- upgrade PostgreSQL BAG datamodel van 4.0.0 naar 4.0.1
-- upgrade PostgreSQL BAG datamodel van 4.0.0 naar 5.0.0
--

CREATE SCHEMA IF NOT EXISTS bag;
Expand All @@ -8,6 +8,6 @@ SET search_path = bag,public;


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--
-- upgrade PostgreSQL BRK datamodel van 4.0.0 naar 4.0.1
-- upgrade PostgreSQL BRK datamodel van 4.0.0 naar 5.0.0
--

CREATE SCHEMA IF NOT EXISTS brk;
Expand All @@ -10,6 +10,6 @@ SET SCHEMA 'brk';


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--
-- upgrade PostgreSQL RSGB datamodel van 4.0.0 naar 4.0.1
-- upgrade PostgreSQL RSGB datamodel van 4.0.0 naar 5.0.0
--

set search_path = public,bag,brk;


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
--
-- upgrade PostgreSQL RSGBBGT datamodel van 4.0.0 naar 4.0.1
-- upgrade PostgreSQL RSGBBGT datamodel van 4.0.0 naar 5.0.0
--

CREATE TABLE IF NOT EXISTS brmo_metadata(naam CHARACTER VARYING(255) NOT NULL, waarde TEXT, CONSTRAINT brmo_metadata_pk PRIMARY KEY (naam));
INSERT INTO brmo_metadata(naam) VALUES('brmoversie') ON CONFLICT DO NOTHING;


-- onderstaande dienen als laatste stappen van een upgrade uitgevoerd
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_4.0.1','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
INSERT INTO brmo_metadata (naam,waarde) SELECT 'upgrade_4.0.0_naar_5.0.0','vorige versie was ' || waarde FROM brmo_metadata WHERE naam='brmoversie';
-- versienummer update
UPDATE brmo_metadata SET waarde='4.0.1' WHERE naam='brmoversie';
UPDATE brmo_metadata SET waarde='5.0.0' WHERE naam='brmoversie';
Loading

0 comments on commit fcd2686

Please sign in to comment.