From 9a11af4dc840ddf38350da46ce8ad826e0dd45b3 Mon Sep 17 00:00:00 2001 From: Olojakpoke Daniel Date: Wed, 24 Apr 2024 16:09:12 +0100 Subject: [PATCH] fix: add limit --- v1Tov2Migrations/migrate_approved_captures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v1Tov2Migrations/migrate_approved_captures.js b/v1Tov2Migrations/migrate_approved_captures.js index 19fe255..6bf3df0 100644 --- a/v1Tov2Migrations/migrate_approved_captures.js +++ b/v1Tov2Migrations/migrate_approved_captures.js @@ -29,7 +29,7 @@ async function migrate() { ) ) AND rc.reference_id != 2463005 - order by pt.id asc + order by pt.id asc limit 100000 `; const rowCountResult = await knex.select( knex.raw(`count(1) from (${base_query_string}) as src`),