Skip to content

Commit

Permalink
[BRMO-389] Verwijder BRK-1 (materialized) views (#2327)
Browse files Browse the repository at this point in the history
BRK Levering 1 wordt niet langer ondersteund.

- [x] stop met aanmaken van de (materialized) views
- [x] upgrade script om (materialized) views op te ruimen
- [x] update RSGB upgrade instructies:
https://github.com/B3Partners/brmo/wiki/Upgrade-v4.0.0-naar-v5.0.0#upgrade-scripts-1
  • Loading branch information
mprins authored Dec 3, 2024
2 parents 808f1f0 + 3386128 commit c3693e8
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 1,758 deletions.
17 changes: 5 additions & 12 deletions .build/ci/oracle-execute-upgrade-extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,11 @@ export SQLPATH=./.build/ci

if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "rsgb" ]
then
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
# docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/FREE < ./datamodel/utility_scripts/oracle/205_delete_brk_brondocumenten.sql
docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/FREE < ./datamodel/extra_scripts/oracle/301_drop_brk1_tabellen.sql
fi

if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "staging" ]
then
continue # nog geen extra scripts voor 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
fi

if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "topnl" ]
then
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
#fi
13 changes: 5 additions & 8 deletions .build/ci/pgsql-execute-upgrade-extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ echo "Verwerk extra upgrade scripts voor: " $1

if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "rsgb" ]
then
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
# psql -U postgres -h localhost -d $1 -f ./datamodel/utility_scripts/postgresql/205_delete_brk_brondocumenten.sql
psql -U postgres -h localhost -d $1 -f ./datamodel/extra_scripts/postgresql/301_drop_brk1_tabellen.sql
fi

if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "staging" ]
then
continue # nog geen extra scripts voor 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
fi

#fi
7 changes: 7 additions & 0 deletions brmo-dist/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@
<include>**/300_*.sql</include>
</includes>
</fileSet>
<fileSet>
<directory>../${project.basedir}/datamodel/extra_scripts/</directory>
<outputDirectory>db/upgrade_scripts/4.0.0-5.0.0</outputDirectory>
<includes>
<include>**/301_*.sql</include>
</includes>
</fileSet>
<fileSet>
<directory>../${project.basedir}/datamodel/extra_scripts/</directory>
<outputDirectory>db/utility_scripts/3.0.2-4.0.0</outputDirectory>
Expand Down
2 changes: 1 addition & 1 deletion datamodel/datamodel.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<script>122_idx_gebr_doel.sql</script>
<script>123_add_hoofdvestiging.sql</script>
<script>124_uitbreiding_woz.sql</script>
<script>207_brk_views.sql</script>
<script>300_drop_bag_tabellen.sql</script>
<script>301_drop_brk1_tabellen.sql</script>
</extra-scripts>
</schema>
</xsl:template>
Expand Down
Loading

0 comments on commit c3693e8

Please sign in to comment.