Commit 8928552
committed
Handle NULLs in hourly_statistics backfill
Use COALESCE for total_fee and total_gas_used when backfilling indexer.hourly_statistics_agg from indexer.hourly_statistics to avoid inserting NULLs. This ensures missing values are treated as 0 during the migration (packages/graphql/database/migrations/046_replace_hourly_statistics_mv_with_agg_table.sql) and preserves the existing ON CONFLICT update behavior.1 parent ca7dab1 commit 8928552
File tree
1 file changed
+1
-1
lines changed- packages/graphql/database/migrations
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments