From d3ab1697e4e21052cfaaaa7b562fbd5746e654f4 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 3 Jul 2024 15:05:53 +0200 Subject: [PATCH] remove comma in SQL query --- .../src/20240624000000-replace-links-to-course-pages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/db-migrations/src/20240624000000-replace-links-to-course-pages.ts b/packages/db-migrations/src/20240624000000-replace-links-to-course-pages.ts index 126ac6f3d..8d168ac2e 100644 --- a/packages/db-migrations/src/20240624000000-replace-links-to-course-pages.ts +++ b/packages/db-migrations/src/20240624000000-replace-links-to-course-pages.ts @@ -30,7 +30,7 @@ export async function up(db: Database) { const coursePages = await db.runSql(` SELECT entity.id AS coursePageId, - ent2.id AS courseId, + ent2.id AS courseId FROM entity JOIN entity_link ON entity.id = entity_link.child_id JOIN entity ent2 ON entity_link.parent_id = ent2.id