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
When a column is renamed and modified in some other way that requires an up and down SQL (eg changing its type), migration authors should be able to refer to the column in the down SQL by the new name of the column, as in this example:
Currently, the above migration will fail because the down SQL in the above example needs to be written as though the column were still called age, ie the column name before the rename.
For alter column operations involving a rename, the generated down trigger should change in such a way that the name of column in the user supplied down SQL can use the renamed column name.
The text was updated successfully, but these errors were encountered:
…olumn (#354)
Ensure that 'alter column' operations that rename a column and also
specify `down` SQL (such as those that alter some other column attribute
at the time of the rename) must use the new name of the column in the
`down` SQL.
Without this change, the `down` SQL would require the use of the old
column name.
Fixes#350
When a column is renamed and modified in some other way that requires an
up
anddown
SQL (eg changing its type), migration authors should be able to refer to the column in thedown
SQL by the new name of the column, as in this example:Currently, the above migration will fail because the
down
SQL in the above example needs to be written as though the column were still calledage
, ie the column name before the rename.For alter column operations involving a rename, the generated down trigger should change in such a way that the name of column in the user supplied
down
SQL can use the renamed column name.The text was updated successfully, but these errors were encountered: