Remove the old column only after the new column is present.
highlighted = computed this step
Drop after copy
After the copied-and-renamed column exists, the old column can be removed in this toy transform.
drop after copy
Show the final shape
After 5 steps, the final table has 3 columns.
columns=3
Schema-change examples are tiny finite table transforms; SQL dialects, online migration algorithms, locks, performance, ORMs, compliance, and operational runbooks are out of scope.
Compare rows
The changed-rows table shows that values were preserved under the new column name.
compare old and new rows
Summary
The order matters because later steps can only use columns that still exist.