Skip to content

Commit

Permalink
[BRMO-388] Opruimen BRK 1 data uit staging database (#2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins authored Dec 3, 2024
2 parents c3693e8 + 18025f2 commit 7aa1d1a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .build/ci/oracle-execute-upgrade-extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export SQLPATH=./.build/ci

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/205_delete_brk_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
# 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 = "staging" ]
then
docker exec -i oracle_brmo sqlplus -l -S jenkins_$1/jenkins_$1@//localhost:1521/FREE < ./datamodel/utility_scripts/oracle/1001_delete_brk1_berichten.sql
fi
10 changes: 5 additions & 5 deletions .build/ci/pgsql-execute-upgrade-extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ echo "Verwerk extra upgrade scripts voor: " $1

if [ $CURSNAPSHOT = "5.0.0-SNAPSHOT" ] && [ $1 = "rsgb" ]
then
# 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/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
# 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
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/1001_delete_brk1_berichten.sql
fi
8 changes: 8 additions & 0 deletions brmo-dist/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@
<include>**/1000_*.sql</include>
</includes>
</fileSet>
<fileSet>
<directory>../${project.basedir}/datamodel/extra_scripts/</directory>
<outputDirectory>db/utility_scripts/4.0.0-5.0.0</outputDirectory>
<includes>
<include>**/205_*.sql</include>
<include>**/1001_*.sql</include>
</includes>
</fileSet>
<fileSet>
<directory>../${project.basedir}/</directory>
<outputDirectory/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- verwijder alle BRK 1 data uit de staging database
DELETE FROM bericht WHERE soort = 'brk';
DELETE FROM laadproces WHERE soort = 'brk';
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- verwijder alle BAG 1 data uit de staging database
delete from bericht where soort = 'brk';
delete from laadproces where soort = 'brk';

0 comments on commit 7aa1d1a

Please sign in to comment.