Skip to content

Commit

Permalink
ensure search path is set for sqlx cli (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcountryman authored Nov 1, 2024
1 parent 6a2f1f7 commit b0617dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions migrations/20240921151751_0.sql
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
3 changes: 3 additions & 0 deletions migrations/20241024174106_1.sql
Original file line number Diff line number Diff line change
@@ -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 $$
Expand Down

0 comments on commit b0617dd

Please sign in to comment.