From b0617dd38421a1fc2f1c32b3422d208221174a5b Mon Sep 17 00:00:00 2001 From: Max Countryman Date: Fri, 1 Nov 2024 10:18:06 -0700 Subject: [PATCH] ensure search path is set for sqlx cli (#45) --- migrations/20240921151751_0.sql | 3 +++ migrations/20241024174106_1.sql | 3 +++ 2 files changed, 6 insertions(+) diff --git a/migrations/20240921151751_0.sql b/migrations/20240921151751_0.sql index 4dbac9c..f46ee7e 100644 --- a/migrations/20240921151751_0.sql +++ b/migrations/20240921151751_0.sql @@ -1,5 +1,8 @@ create schema if not exists underway; +-- Force anything running this migration to use the right search path. +set local search_path to underway; + -- Manage Underway migrations within the Underway schema. create table if not exists underway._sqlx_migrations (like public._sqlx_migrations including all); diff --git a/migrations/20241024174106_1.sql b/migrations/20241024174106_1.sql index 0fed87d..fe3f0ae 100644 --- a/migrations/20241024174106_1.sql +++ b/migrations/20241024174106_1.sql @@ -1,3 +1,6 @@ +-- Force anything running this migration to use the right search path. +set local search_path to underway; + -- function to notify about task changes create or replace function underway.task_change_notify() returns trigger as $$