Skip to content

Migrate issuable states to integer patch 1 of 2

Felipe Artur requested to merge issue_51789_part_1 into master

What does this MR do?

Migrates issues/merge_requests state column from string to integer.
This migration will require two releases to avoid downtime.
A second merge request will be opened as soon as this one gets merged.

First release(this merge request)

  1. Add a state_id column to issues and merge requests tables
  2. Schedule a background migration that will populate state_id column with new values

Second release(next merge request)

  1. Adds new indexes to state_id column
  2. Add the code which uses the new state_id column
  3. Removes old state column with a post deployment migration

What are the relevant issue numbers?

closes #51789 (closed)

Does this MR meet the acceptance criteria?

Edited by Felipe Artur

Merge request reports