You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrations: Attempt better ordering when adding computed columns #6853
good first issueThis issue should be relatively straightforward to fix.help wantedThis issue involves technologies where we are not experts. Expert help would be appreciated.
The string given in HasComputedColumnSql is just a transparent string to us and we don't attempt to do any parsing etc. This is one of the scenarios where you would just edit the scaffolded migration based on what you know about the schema (in this case re-ordering the operations). We don't want to go down the route of trying to parse and reason about the computed column dependencies.
good first issueThis issue should be relatively straightforward to fix.help wantedThis issue involves technologies where we are not experts. Expert help would be appreciated.
Activity
[-]Wrong order in migration file.[/-][+]Wrong order in a migration file.[/+]rowanmiller commentedon Oct 25, 2016
The string given in
HasComputedColumnSqlis just a transparent string to us and we don't attempt to do any parsing etc. This is one of the scenarios where you would just edit the scaffolded migration based on what you know about the schema (in this case re-ordering the operations). We don't want to go down the route of trying to parse and reason about the computed column dependencies.sharok commentedon Oct 26, 2016
I see. But, I think, it would be better if you just make some simple analysis. For example, put all computed properties to the end.
[-]Wrong order in a migration file.[/-][+]Migrations: Attempt better ordering when adding computed columns[/+]rowanmiller commentedon Oct 26, 2016
We'll take a look at the idea of adding computed columns after adding other columns.
fix(Migrations): better ordering when adding computed columns
fix(Migrations): better ordering when adding computed columns
AndriySvyryd commentedon Oct 31, 2016
Fixed in 1b1abb1
fix(Migrations): better ordering when adding computed columns