Skip to content

Conversation

@sebastian-ederer
Copy link
Contributor

This commit fixes issue #14 where changes to hypertable dimensions were not being detected or applied during migrations.

Changes:

  • Add AdditionalDimensions and OldAdditionalDimensions properties to AlterHypertableOperation
  • Implement dimension comparison logic in HypertableDiffer.AreDimensionsEqual()
  • Update HypertableOperationGenerator to generate add_dimension() SQL for new dimensions
  • Add warning comment when dimensions are removed (TimescaleDB limitation)
  • Fix minor whitespace formatting issues in test files

Technical details:

  • Only new dimensions generate SQL in Up() migrations
  • Removed dimensions generate warning comments in Down() migrations (cannot be reversed)
  • Dimension comparison checks ColumnName, Type, Interval, and NumberOfPartitions

  This commit fixes issue #14 where changes to hypertable dimensions were not being detected or applied during migrations.

  Changes:
  - Add AdditionalDimensions and OldAdditionalDimensions properties to AlterHypertableOperation
  - Implement dimension comparison logic in HypertableDiffer.AreDimensionsEqual()
  - Update HypertableOperationGenerator to generate add_dimension() SQL for new dimensions
  - Add warning comment when dimensions are removed (TimescaleDB limitation)
  - Fix minor whitespace formatting issues in test files

  Technical details:
  - Only new dimensions generate SQL in Up() migrations
  - Removed dimensions generate warning comments in Down() migrations (cannot be reversed)
  - Dimension comparison checks ColumnName, Type, Interval, and NumberOfPartitions
@sebastian-ederer sebastian-ederer merged commit 7ad1a5d into main Nov 17, 2025
2 checks passed
@sebastian-ederer sebastian-ederer deleted the fix/#14_fix_altering_space_dimensions branch November 17, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants