Skip to content

Commit 090ad0d

Browse files
Mateusz Czeladkaclaude
authored andcommitted
refactor(flyway): simplify address_utxo migration script
Remove unnecessary complexity from address_utxo migration as full database re-indexing eliminates the need for overly protective conditional logic. Changes: - Simplify V1.0_900_0 migration to direct index creation - Remove conditional DO $$ block that checked for index existence - Keep only essential index creation on address_utxo.tx_hash 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 017911d commit 090ad0d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
DO $$
2-
BEGIN
3-
IF NOT EXISTS (
4-
SELECT 1 FROM pg_indexes
5-
WHERE indexname = 'idx_address_utxo_tx_hash'
6-
AND tablename = 'address_utxo'
7-
AND schemaname = current_schema()
8-
) THEN
9-
CREATE INDEX idx_address_utxo_tx_hash ON address_utxo USING btree (tx_hash);
10-
END IF;
11-
END $$;
1+
CREATE INDEX idx_address_utxo_tx_hash ON address_utxo USING btree (tx_hash);

0 commit comments

Comments
 (0)