Skip to content

Commit

Permalink
fix: next migration
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Feb 13, 2025
1 parent a10356b commit 8913cdb
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ do $$

perform pg_notify('migrations-{{ .Schema }}', 'init: ' || (select count(*) from moves_view));

-- disable triggers
set session_replication_role = replica;

loop
with data as (
select transactions_id, volumes
Expand All @@ -54,9 +51,6 @@ do $$
commit;
end loop;

-- enable triggers
set session_replication_role = default;

drop table if exists moves_view;

alter table transactions
Expand Down

0 comments on commit 8913cdb

Please sign in to comment.