Migrations: Drop generated column should come before dropping the columns it's generated from #25237
Labels
area-migrations
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Using EF core 5, I removed three columns from my model, with the third column being of type NpgsqlTsVector and computed from the other two via HasGeneratedTsVectorColumn. When I generated the SQL using migrations, it tried to drop the generated column after the other two. However, PostgreSQL doesn't seem to like this - I guess the generated column is already dropped when the columns it's generated from are dropped. It would be good if the order was changed so the generated column was dropped first.
The text was updated successfully, but these errors were encountered: