Skip to content

Drop column sp_return_logs.requested_at#12025

Merged
vrajmohan merged 1 commit intomainfrom
vm-remove-requested-at-from-sp-return-log-3
Mar 27, 2025
Merged

Drop column sp_return_logs.requested_at#12025
vrajmohan merged 1 commit intomainfrom
vm-remove-requested-at-from-sp-return-log-3

Conversation

@vrajmohan
Copy link
Copy Markdown
Contributor

changelog: Internal, Events, Drop column sp_return_logs.requested_at

Step 3 of 3

Steps:

  1. Add migration to drop the NOT NULL constraint and deploy
  2. Add column to ignored_columns, remove all reads and writes and deploy
  3. Drop column using safety_assured and deploy

🎫 Ticket

Link to the relevant ticket:
LG-13781

changelog: Internal, Events, Drop column sp_return_logs.requested_at

Step 3 of 3

Steps:
1. Add migration to drop the NOT NULL constraint and deploy
2. Add column to `ignored_columns`, remove all reads and writes and deploy
3. Drop column using `safety_assured` and deploy
@vrajmohan vrajmohan force-pushed the vm-remove-requested-at-from-sp-return-log-3 branch from 1133b09 to b7d4f91 Compare March 25, 2025 17:18
@vrajmohan vrajmohan requested a review from a team March 26, 2025 14:32
Copy link
Copy Markdown
Contributor

@kevinsmaster5 kevinsmaster5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good.

Just for my own PR review development, for a DB change like this I'd want to make sure that if you dropped a column that there isn't an index for that column left behind, correct?

@vrajmohan
Copy link
Copy Markdown
Contributor Author

They should be automatically dropped as well, see https://www.postgresql.org/docs/16/sql-altertable.html#SQL-ALTERTABLE-DESC-DROP-COLUMN.

@vrajmohan vrajmohan merged commit b49f42a into main Mar 27, 2025
2 checks passed
@vrajmohan vrajmohan deleted the vm-remove-requested-at-from-sp-return-log-3 branch March 27, 2025 18:45
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.

2 participants