Skip to content

Commit

Permalink
Make view migration idempotent
Browse files Browse the repository at this point in the history
Fixes #1801
  • Loading branch information
kderme committed Aug 8, 2024
1 parent f15a4c8 commit 2b4b6be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/migration-3-0001-20190816.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

-- A utxo view which shows all unspent transaction outputs including the un-redeemed redeem
-- addresses.
create view utxo_byron_view as select
create or replace view utxo_byron_view as select
tx_out.*
from tx_out left outer join tx_in
on tx_out.tx_id = tx_in.tx_out_id and tx_out.index = tx_in.tx_out_index
Expand All @@ -19,7 +19,7 @@ create view utxo_byron_view as select
-- addresses.
-- This should produce the same query results as the above `utxo_byron_view` for Shelley addresses
-- and non-redeem Byron addresses.
create view utxo_view as select
create or replace view utxo_view as select
tx_out.*
from tx_out
left outer join tx_in on tx_out.tx_id = tx_in.tx_out_id and tx_out.index = tx_in.tx_out_index
Expand Down

0 comments on commit 2b4b6be

Please sign in to comment.