Skip to content

Commit 135c1c0

Browse files
committed
Fix migrations
1 parent 86226c7 commit 135c1c0

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
DROP TABLE vtxo_commitment_txid;
2+
3+
DROP VIEW vtxo_vw;
4+
5+
DROP VIEW request_vtxo_vw;
6+
CREATE VIEW request_vtxo_vw AS
7+
SELECT vtxo.*
8+
FROM tx_request
9+
LEFT OUTER JOIN vtxo
10+
ON tx_request.id = vtxo.request_id;
11+
12+
DROP VIEW vtxo_virtual_tx_vw;
13+
CREATE VIEW vtxo_virtual_tx_vw AS
14+
SELECT
15+
vtxo.*,
16+
virtual_tx.tx AS redeem_tx
17+
FROM vtxo
18+
LEFT JOIN virtual_tx
19+
ON vtxo.txid = virtual_tx.txid;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
DROP TABLE vtxo_commitment_txid;
2+
3+
DROP VIEW IF EXISTS vtxo_vw;
4+
5+
DROP VIEW IF EXISTS request_vtxo_vw;
6+
7+
CREATE VIEW IF NOT EXISTS request_vtxo_vw AS
8+
SELECT vtxo.*
9+
FROM tx_request
10+
LEFT OUTER JOIN vtxo
11+
ON tx_request.id = vtxo.request_id;

0 commit comments

Comments
 (0)