Skip to content

fix(flow-php/postgresql): detect stale-cast drift in column/domain default comparison#2446

Merged
norberttech merged 1 commit into
1.xfrom
postgresql-migrations-diff-bug
Jun 12, 2026
Merged

fix(flow-php/postgresql): detect stale-cast drift in column/domain default comparison#2446
norberttech merged 1 commit into
1.xfrom
postgresql-migrations-diff-bug

Conversation

@norberttech

Copy link
Copy Markdown
Member

Change Log


Added

  • flow-php/postgresql - ColumnDefault value object and ColumnType::isSameBaseType()

Fixed

  • flow-php/postgresql - schema diff now detects stale-cast drift in column and domain defaults

Changed

  • flow-php/postgresql - column and domain defaults are modeled as ColumnDefault (breaking ColumnShape/DomainShape default shape)

Removed

Deprecated

Security

…fault comparison

- model defaults as a `ColumnDefault` value object (literal, type, kind)
- compare constant defaults type-aware so a wrong-typed stored cast is
detected
- add `ColumnType::isSameBaseType()` (base type, ignoring typmod)
@norberttech norberttech added this to the 0.40.0 milestone Jun 12, 2026
@norberttech norberttech merged commit c6f07ae into 1.x Jun 12, 2026
36 checks passed
@norberttech norberttech deleted the postgresql-migrations-diff-bug branch June 12, 2026 17:51
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant