Skip to content

Feature/#16 migrate data support#24

Merged
sebastian-ederer merged 4 commits intomainfrom
feature/#16_migrate_data_support
Nov 26, 2025
Merged

Feature/#16 migrate data support#24
sebastian-ederer merged 4 commits intomainfrom
feature/#16_migrate_data_support

Conversation

@sebastian-ederer
Copy link
Copy Markdown
Member

  • Adds support for migrate_data to also be able to transform existing tables with data to hypertables.
  • Adds guard to avoid syntax errors caused by migrationBuilder with no SQL statements.

Adds the ability to specify whether existing data should be migrated when converting a regular PostgreSQL table to a TimescaleDB hypertable.

Implementation:
  - Added MigrateData property to CreateHypertableOperation
  - Added MigrateData annotation constant to HypertableAnnotations
  - Added MigrateData property to HypertableAttribute
  - Added WithMigrateData() fluent API method to HypertableTypeBuilder
  - Updated HypertableConvention to process MigrateData from attribute
  - Updated HypertableModelExtractor to extract MigrateData annotation
  - Updated HypertableOperationGenerator to generate migrate_data => true SQL

Testing:
  - Added 19 unit tests across 5 test files
  - Added 5 integration tests verifying end-to-end behavior
Adds the ability to specify whether existing data should be migrated when converting a regular PostgreSQL table to a TimescaleDB hypertable.

Implementation:
  - Added MigrateData property to CreateHypertableOperation
  - Added MigrateData annotation constant to HypertableAnnotations
  - Added MigrateData property to HypertableAttribute
  - Added WithMigrateData() fluent API method to HypertableTypeBuilder
  - Updated HypertableConvention to process MigrateData from attribute
  - Updated HypertableModelExtractor to extract MigrateData annotation
  - Updated HypertableOperationGenerator to generate migrate_data => true SQL

Testing:
  - Added 19 unit tests across 5 test files
  - Added 5 integration tests verifying end-to-end behavior
… empty migrationBuilder statement to lead to syntax errors.
@sebastian-ederer sebastian-ederer merged commit 18521c4 into main Nov 26, 2025
2 checks passed
@sebastian-ederer sebastian-ederer deleted the feature/#16_migrate_data_support branch November 26, 2025 23:20
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.

1 participant