Skip to content

Conversation

@yi-Xu-0100
Copy link
Contributor

Describe the change

Use timestamp with time zone in postgresql.

Describe your implementation or design

Only add column type.

Additional context

Relative issue: #1373

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the PostgreSQL persistence provider to use timestamp with time zone instead of timestamp without time zone for all DateTime columns. This change ensures proper timezone handling for workflow-related timestamps.

Key changes:

  • Modified entity configurations to specify timezone-aware timestamp columns
  • Updated the EF Core model snapshot to reflect the new column types
  • Added a database migration to alter existing timestamp columns

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
PostgresContext.cs Added OnModelCreating override to configure DateTime properties with timezone-aware column types
PostgresPersistenceProviderModelSnapshot.cs Updated model snapshot to reflect new timestamp column types and EF Core version upgrade
20250807084543_ChangeDataTimeTypeForPostgreSQL.cs Migration file to alter existing DateTime columns from timezone-naive to timezone-aware
Files not reviewed (1)
  • src/providers/WorkflowCore.Persistence.PostgreSQL/Migrations/20250807084543_ChangeDataTimeTypeForPostgreSQL.Designer.cs: Language not supported

@danielgerlag danielgerlag merged commit 5a8907c into danielgerlag:master Aug 12, 2025
9 of 10 checks passed
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