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.
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.