From a0635960a5331335af1282f5123896aca661bef3 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 17 Feb 2025 09:40:58 +0100 Subject: [PATCH] migrate hosting-assets into external db (#158) Co-authored-by: Michael Hoennig Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/158 Reviewed-by: Marc Sandlus --- .aliases | 6 +- .run/ImportHostingAssets into local.run.xml | 3 +- .run/ImportHostingAssets.run.xml | 1 - .tc-environment | 10 +- .unset-environment | 1 + .../db/changelog/1-rbac/1055-rbac-views.sql | 11 +- .../changelog/1-rbac/1058-rbac-generators.sql | 4 +- .../db/changelog/1-rbac/1080-rbac-global.sql | 9 +- .../hsadminng/hs/migration/CsvDataImport.java | 14 +- .../hs/migration/ImportHostingAssets.java | 64 +- ...ly-office-schema-with-import-test-data.sql | 918 +++++++++--------- 11 files changed, 545 insertions(+), 496 deletions(-) diff --git a/.aliases b/.aliases index a6b52477..0ca84c79 100644 --- a/.aliases +++ b/.aliases @@ -113,9 +113,9 @@ function _gwTest1() { echo "DONE gw $@" } function _gwTest() { - . .aliases; - . .tc-environment; - rm /tmp/gwTest.tmp + . .aliases + . .tc-environment + rm -f /tmp/gwTest.tmp if [ "$1" == "--all" ]; then shift # to remove the --all from $@ # delierately in separate gradlew-calls to avoid Testcontains-PostgreSQL problem spillover diff --git a/.run/ImportHostingAssets into local.run.xml b/.run/ImportHostingAssets into local.run.xml index d3c7f2da..956ca15d 100644 --- a/.run/ImportHostingAssets into local.run.xml +++ b/.run/ImportHostingAssets into local.run.xml @@ -7,6 +7,7 @@ +