summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2026-06-23 14:47:18 +0200
committerGitHub2026-06-23 12:47:18 +0000
commitb16cd39aa622f018e318ebef2006c517708cf06e (patch)
tree9030296dd05dc8c543b35732a78dc1b2995040e2 /src/main/resources
parentd0fc0ed8eff036c0c01247e638625cdfef118efd (diff)
feat: support for asynchronous follow-up count calculation (#300)
This is required if async messaging is used. The request is already gone if response gets processed. Workflow: * Keep old followup_count * Add expected_followup_count * If: DNPM:DIP accepts the request - copy to to followup_count * Else: keep old followup_count This prevents from saving unaccepted follow-up counts.
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/db/migration/mariadb/V0_16_3_1__ExpectedFollowUpCount.sql2
-rw-r--r--src/main/resources/db/migration/postgresql/V0_16_3_1__ExpectedFollowUpCount.sql2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/resources/db/migration/mariadb/V0_16_3_1__ExpectedFollowUpCount.sql b/src/main/resources/db/migration/mariadb/V0_16_3_1__ExpectedFollowUpCount.sql
new file mode 100644
index 0000000..ded8172
--- /dev/null
+++ b/src/main/resources/db/migration/mariadb/V0_16_3_1__ExpectedFollowUpCount.sql
@@ -0,0 +1,2 @@
+ALTER TABLE request ADD COLUMN expected_followup_count int DEFAULT 0;
+UPDATE request SET expected_followup_count = -1; \ No newline at end of file
diff --git a/src/main/resources/db/migration/postgresql/V0_16_3_1__ExpectedFollowUpCount.sql b/src/main/resources/db/migration/postgresql/V0_16_3_1__ExpectedFollowUpCount.sql
new file mode 100644
index 0000000..ded8172
--- /dev/null
+++ b/src/main/resources/db/migration/postgresql/V0_16_3_1__ExpectedFollowUpCount.sql
@@ -0,0 +1,2 @@
+ALTER TABLE request ADD COLUMN expected_followup_count int DEFAULT 0;
+UPDATE request SET expected_followup_count = -1; \ No newline at end of file