Skip to content

Remove download_code column from member_roles

Jarka Košanová requested to merge 385221-column-removal into master

What does this MR do and why?

We started ignoring column in !106256 (merged) (15.7). This MR removes it.

Related doc: https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#dropping-the-column-release-m1

Follow-up: #385222 (closed)

Database migration output

Migrate

main: == 20230319105436 RemoveMemberRoleDownloadCode: migrating =====================
main: -- remove_column(:member_roles, :download_code, :boolean, {:default=>false})
main:    -> 0.0122s
main: == 20230319105436 RemoveMemberRoleDownloadCode: migrated (0.0378s) ============

Rollback

main: == 20230319105436 RemoveMemberRoleDownloadCode: reverting =====================
main: -- add_column(:member_roles, :download_code, :boolean, {:default=>false})
main:    -> 0.0108s
main: == 20230319105436 RemoveMemberRoleDownloadCode: reverted (0.0281s) ============

MR acceptance checklist

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

Related to #385221 (closed)

Edited by Jarka Košanová

Merge request reports

Loading