Skip to content

Conversation

@Shubham8287
Copy link
Contributor

@Shubham8287 Shubham8287 commented Oct 21, 2025

Description of Changes

auto_migrate_database should not take table schema as input because each step is ordered and may depend on changes made by a prior step, this approach can lead to incorrect assumptions (e.g., adding a column changes its table id).

Migration steps now retrieve the current table schema when they run. This adds a small performance cost, but it simplifies the logic and code is not under hotpath.

fixes #3441

API and ABI breaking changes

NA

Expected complexity level and risk

1

Testing

Update smoketest to add failed case.

@Shubham8287 Shubham8287 requested a review from Centril October 22, 2025 05:40
Copy link
Contributor

@Centril Centril left a comment

Choose a reason for hiding this comment

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

Approved with requested commentary added.

@Shubham8287 Shubham8287 enabled auto-merge October 23, 2025 06:30
@Shubham8287 Shubham8287 added this pull request to the merge queue Oct 23, 2025
Merged via the queue into master with commit 5ad2dcf Oct 23, 2025
25 of 26 checks passed
@Shubham8287 Shubham8287 deleted the shub/fix-add-column-with-index branch October 23, 2025 12:20
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.

Breaking publish with new column and new index results in failure

2 participants