Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make down SQL in rename column operations use the new name of the column #354

Merged
merged 2 commits into from
May 16, 2024

Conversation

andrew-farries
Copy link
Collaborator

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

If the column is being renamed by the alter table operation, ensure that
the variable declared in the down trigger is also renamed to the new
name of the column.
@andrew-farries andrew-farries merged commit 4d3faeb into main May 16, 2024
88 checks passed
@andrew-farries andrew-farries deleted the use-new-col-name-in-down-sql-for-rename-col branch May 16, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Down SQL in 'alter column' operation that renames a column should use the new column name
2 participants