Skip to content

Commit

Permalink
fix(condo): Add sql statement timeout for add sql field migrations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ekabardinsky authored Aug 10, 2023
1 parent 14af11b commit 5bfd022
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
exports.up = async (knex) => {
await knex.raw(`
BEGIN;
--
-- [CUSTOM] Set Statement Timeout to some large amount - 25 min (25 * 60 => 1500 sec)
--
SET statement_timeout = '1500s';
--
-- Add field file to billingreceipt
--
Expand All @@ -15,6 +20,7 @@ ALTER TABLE "BillingReceiptHistoryRecord" ADD COLUMN "file" uuid NULL;
CREATE INDEX "BillingReceipt_file_24115686" ON "BillingReceipt" ("file");
COMMIT;
SET statement_timeout = '10s';
`)
}

Expand Down

0 comments on commit 5bfd022

Please sign in to comment.