From c59d0318162874c10c0bd3d2dfa900517d34f048 Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Sat, 12 Oct 2024 23:09:50 +0200
Subject: [PATCH] Hotfix the cascade

Signed-off-by: Martin Weise <martin.weise@tuwien.ac.at>
---
 helm/dbrepo/templates/metadata-configmap.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helm/dbrepo/templates/metadata-configmap.yaml b/helm/dbrepo/templates/metadata-configmap.yaml
index c5d93fc4a1..893f255627 100644
--- a/helm/dbrepo/templates/metadata-configmap.yaml
+++ b/helm/dbrepo/templates/metadata-configmap.yaml
@@ -389,7 +389,7 @@ data:
         auto_generated   BOOLEAN                  DEFAULT false,
         is_null_allowed  BOOLEAN         NOT NULL DEFAULT true,
         PRIMARY KEY (id),
-        FOREIGN KEY (view_id) REFERENCES mdb_view (id)
+        FOREIGN KEY (view_id) REFERENCES mdb_view (id) ON DELETE CASCADE
     ) WITH SYSTEM VERSIONING;
 
     CREATE TABLE IF NOT EXISTS `mdb_identifiers`
-- 
GitLab