From 69473ee025035dd3a84820ae905424b5ee7f9e24 Mon Sep 17 00:00:00 2001 From: Pouria Ezzati Date: Thu, 9 Jan 2025 16:06:05 +0330 Subject: [PATCH] fix visits migration --- server/migrations/20241223103044_visits_user_id.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/migrations/20241223103044_visits_user_id.js b/server/migrations/20241223103044_visits_user_id.js index f8ac1e0b..ffa51574 100644 --- a/server/migrations/20241223103044_visits_user_id.js +++ b/server/migrations/20241223103044_visits_user_id.js @@ -19,7 +19,7 @@ async function up(knex) { .withKeyName("visits_user_id_foreign"); }); - const [{ count }] = await knex("visits").count("'*' as count"); + const [{ count }] = await knex("visits").count("* as count"); if (count < 1_000_000) { const last_visit = await knex("visits").orderBy("id", "desc").first();