From eac88a3852299f30f58d5af7295df9037601669d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de>
Date: Sun, 26 May 2024 00:24:49 +0200
Subject: [PATCH] Fix db schema comment for pgloader

---
 config/db_schema_postgres.sql | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/config/db_schema_postgres.sql b/config/db_schema_postgres.sql
index d6df052..7fe8034 100644
--- a/config/db_schema_postgres.sql
+++ b/config/db_schema_postgres.sql
@@ -431,9 +431,10 @@ CREATE VIEW "videos" AS
     FROM "videos_data"
     JOIN "lectures_data" ON ("lectures_data"."id" = "lecture_id")
     JOIN "courses_data" ON ("courses_data"."id" = "course_id")
-    WHERE NOT ("videos_data"."deleted" OR "lectures_data"."deleted" OR "courses_data"."deleted");
+    WHERE NOT ("videos_data"."deleted" OR "lectures_data"."deleted" OR "courses_data"."deleted")
+-- TODO the semicolon is missing here, because pgloader apparently can<insert apostrophe>t properly handle comments (I can?t even write an apostrophe here?!)
 */
 CREATE VIEW "sorterrorlog" AS
     SELECT *
     FROM "sorterrorlog_data"
-    WHERE NOT "sorterrorlog_data"."deleted";
\ No newline at end of file
+    WHERE NOT "sorterrorlog_data"."deleted";
-- 
GitLab