Skip to content

Cleanup PK conversion for few notes related tables

Krasimir Angelov requested to merge 414777/bulk-cleanup into master

What does this MR do and why?

Remove the following integer columns and the related triggers:

  • todos.note_id
  • system_note_metadata.note_id
  • epic_user_mentions.note_id
  • suggestions.note_id
  • issue_user_mentions.note_id
  • note_diff_files.diff_note_id
  • snippet_user_mentions.note_id
  • design_user_mentions.note_id
  • vulnerability_user_mentions.note_id
  • commit_user_mentions.note_id
  • merge_request_user_mentions.note_id
  • timelogs.note_id
  • award_emoji.awardable_id

This step from the process to convert column to bigint is described here - https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#remove-the-trigger-and-old-integer-columns-release-n--2.

The column swaps for these tables were done with Swap integer and bigint columns for notes and d... (#392815 - closed).

Related to #414777 (closed).

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Krasimir Angelov

Merge request reports

Loading