Skip to content

feat: store previous state on ColumnModification for reversible AlterColumn migrations#46

Merged
Mastersam07 merged 2 commits into
devfrom
feat/reversible-alter-column-migrations
Mar 16, 2026
Merged

feat: store previous state on ColumnModification for reversible AlterColumn migrations#46
Mastersam07 merged 2 commits into
devfrom
feat/reversible-alter-column-migrations

Conversation

@Mastersam07
Copy link
Copy Markdown
Contributor

Added previousType and previousDefault to ColumnModification so the reverse code generator can produce correct down() methods for type changes, default value changes, and default drops. The diff engine now captures the DB column's current state when creating AlterColumn operations.

@Mastersam07 Mastersam07 merged commit f510754 into dev Mar 16, 2026
6 checks passed
@Mastersam07 Mastersam07 deleted the feat/reversible-alter-column-migrations branch March 16, 2026 18:17
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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