Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Jan 15, 2025
1 parent 6c3d601 commit f15dde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/bfgd/scripts/0015.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ ALTER TABLE btc_blocks ADD UNIQUE (height);
-- when a btc block becomes "invalid" (orphaned), delete it and all pop_bases
-- that referenced it
ALTER TABLE pop_basis DROP CONSTRAINT pop_basis_btc_block_hash_fkey;
ALTER TABLE pop_basis ADD CONSTRAINT pop_basis_btc_block_hash_fkey FOREIGN KEY (btc_block_hash) REFERENCES btc_blocks (hash) ON UPDATE CASCADE;
ALTER TABLE pop_basis ADD CONSTRAINT pop_basis_btc_block_hash_fkey FOREIGN KEY (btc_block_hash) REFERENCES btc_blocks (hash) ON DELETE CASCADE;

COMMIT;

0 comments on commit f15dde5

Please sign in to comment.