Commit a866f03
fix: correct index mapping in electric_power_quality_summaries table (#44)
Fix incorrect index mapping where idx_epqs_summary_interval_start was
indexing the 'id' column instead of the 'summary_interval_start' column.
This issue was introduced when uuid columns were removed and replaced
with id PRIMARY KEY columns. The index name suggests it should index
summary_interval_start, not id.
Changes:
- V3 migration: Change idx_epqs_summary_interval_start to index
summary_interval_start column instead of id column
Testing:
- All H2 repository tests passing (60+ tests)
- Flyway migrations V1, V2, V3 execute successfully
- Index now correctly targets summary_interval_start column
Fixes issue identified in commit d5e321b where uuid index removal
inadvertently created an incorrectly mapped index.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.5 <[email protected]>1 parent 957c403 commit a866f03
File tree
1 file changed
+1
-1
lines changed- openespi-common/src/main/resources/db/migration
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| |||
0 commit comments