Change state to integer for issuables - Release 2 of 2
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 11.10: 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 11.12: This issue
-
Adds new indexes to
state_idcolumn -
Add the code which uses the new
state_idcolumn -
Removes old
statecolumn with a post deployment migration
Edited by Felipe Cardozo