Files
mysql2postgres/config.py
alex 53cde5f667 Fix: Correct RAWDATACOR partition mapping logic
- Fix year_to_partition_name() RAWDATACOR logic: properly clamp year between 2014-2024
  before calculating partition index with formula (year - 2014)
- Previously: incorrectly tried to return "d" partition type with wrong formula
- Now: correctly returns "part{year-2014}" for RAWDATACOR table
- Update docstring: clarify d17 = 2030 (not 2031) as maximum ELABDATADISP partition
- Ensure partition mapping is consistent between year_to_partition_name() and
  get_partitions_from_year() functions

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-11 15:33:08 +01:00

9.3 KiB