Change state to integer for issuables - Release 2 of 3
This issue covers the second release in the process of moving issuable states to integer. After the new column
state_id has been added on the first release we now need
to move forward with the following tasks to complete the migration:
- Add new indexes to
state_idcolumn - Add model code that uses
state_idcolumn instead ofstate - Removes old
statecolumn with a post deployment migration
Schedule
First release: https://gitlab.com/gitlab-org/gitlab-ce/issues/51789
-
Add a
state_idcolumn to issues and merge requests tables -
Schedule a background migration that will populate
state_idcolumn with new values
Second release: This issue
-
Adds new indexes to
state_idcolumn -
Add the code which uses the new
state_idcolumn
Third release: #33814 (closed)
- Removes old
statecolumn
Edited by Felipe Cardozo