Skip to content

Reproduce missing create table with fk before identity#725

Merged
zachdaniel merged 3 commits intoash-project:mainfrom
jechol:bug/missing-create-table-when-fk-precedes-identity
Mar 21, 2026
Merged

Reproduce missing create table with fk before identity#725
zachdaniel merged 3 commits intoash-project:mainfrom
jechol:bug/missing-create-table-when-fk-precedes-identity

Conversation

@jechol
Copy link
Contributor

@jechol jechol commented Mar 20, 2026

Summary

This PR adds a minimal failing reproduction for a missing Phase.Create
case in AshPostgres.MigrationGenerator.get_operations_from_snapshots/2.

It compares two otherwise equivalent resources where only the relative order
of an explicit foreign key attribute and the identity key differs.

Notes

This PR only adds a failing test reproduction.
It does not include a fix.

Issue: #726

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

@zachdaniel zachdaniel merged commit 6bbea25 into ash-project:main Mar 21, 2026
64 of 67 checks passed
@jechol jechol deleted the bug/missing-create-table-when-fk-precedes-identity branch March 22, 2026 12:16
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