Skip to content

Commit 3418b4d

Browse files
authored
fix: 🐛 update column order of migration in indexer DB to match schema and code (#587)
1 parent 526a964 commit 3418b4d

File tree

1 file changed

+1
-1
lines changed
  • client/indexer-db/migrations/2025-11-27-182418_add_tx_hash_and_block_hash_to_file

1 file changed

+1
-1
lines changed

client/indexer-db/migrations/2025-11-27-182418_add_tx_hash_and_block_hash_to_file/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
-- block_hash: Tracks the block hash where the file was created:
99
-- - Contains the block hash (32 bytes) where the NewStorageRequest event was emitted
1010
-- - For existing files, we use a placeholder hash (all zeros) since we don't have historical data
11-
ALTER TABLE file ADD COLUMN tx_hash BYTEA DEFAULT NULL;
1211
ALTER TABLE file ADD COLUMN block_hash BYTEA NOT NULL DEFAULT '\x0000000000000000000000000000000000000000000000000000000000000000';
12+
ALTER TABLE file ADD COLUMN tx_hash BYTEA DEFAULT NULL;
1313

1414
-- Note: Existing files get a placeholder block_hash (all zeros) since we don't have historical data
1515
-- Only new files created after this migration will have the actual block_hash populated by the indexer

0 commit comments

Comments
 (0)