Skip to content

Commit 116e205

Browse files
committed
delete uncond_forfeits_tx table
1 parent 09340ec commit 116e205

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

server/internal/infrastructure/db/sqlite/migration/20240703120550_init.up.sql

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ CREATE TABLE IF NOT EXISTS tx (
4141
FOREIGN KEY (round_id) REFERENCES round(id)
4242
);
4343

44-
CREATE TABLE IF NOT EXISTS uncond_forfeit_tx (
45-
id INTEGER PRIMARY KEY AUTOINCREMENT,
46-
tx TEXT NOT NULL,
47-
vtxo_txid TEXT NOT NULL,
48-
vtxo_vout INTEGER NOT NULL,
49-
position INTEGER NOT NULL,
50-
FOREIGN KEY (vtxo_txid, vtxo_vout) REFERENCES vtxo(txid, vout)
51-
);
52-
5344
CREATE TABLE IF NOT EXISTS vtxo (
5445
txid TEXT NOT NULL,
5546
vout INTEGER NOT NULL,
@@ -85,9 +76,4 @@ ON payment.id=receiver.payment_id;
8576
CREATE VIEW payment_vtxo_vw AS SELECT vtxo.*
8677
FROM payment
8778
LEFT OUTER JOIN vtxo
88-
ON payment.id=vtxo.payment_id;
89-
90-
CREATE VIEW uncond_forfeit_tx_vw AS SELECT uncond_forfeit_tx.*
91-
FROM vtxo
92-
LEFT OUTER JOIN uncond_forfeit_tx
93-
ON vtxo.txid=uncond_forfeit_tx.vtxo_txid AND vtxo.vout=uncond_forfeit_tx.vtxo_vout;
79+
ON payment.id=vtxo.payment_id;

server/internal/infrastructure/db/sqlite/sqlc/queries/models.go

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)