Skip to content

fix(database): delete rolled back migration records#2164

Merged
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:fix/migration-rollback-tracking-table
Jun 5, 2026
Merged

fix(database): delete rolled back migration records#2164
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:fix/migration-rollback-tracking-table

Conversation

@xHeaven
Copy link
Copy Markdown
Member

@xHeaven xHeaven commented Jun 5, 2026

If you rolled back a migration, it would try to delete its tracking row with DELETE FROM Migration, but since the real table could be different based on the naming strategy, the delete could silently fail and the row would be left behind. That stale row could then cause a later migration to be skipped.

@xHeaven xHeaven requested review from brendt and innocenzi as code owners June 5, 2026 16:01
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

Benchmark Results

Comparison of fix/migration-rollback-tracking-table against 3.x (c699ab834d421d13f092554fe749e3599d3ad026).

Open to see the benchmark results

No benchmark changes above ±5%.

Generated by phpbench against commit 0819414

@innocenzi innocenzi merged commit bf8881e into tempestphp:3.x Jun 5, 2026
76 checks passed
@xHeaven xHeaven deleted the fix/migration-rollback-tracking-table branch June 5, 2026 23:40
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