For those who incrementally went from migration 50 --> 52 --> 56 (or any number after 52), all of the migrations should have succeeded since the updateRolesAndPermissionsForAllThreads migration would have been run on queries that used threads.default_role, not roles.special_role.
However, following some new code in this stack, we updated the queries to use the special_role field.
For those who did not update their migration version incrementally and attempted to go from an older version like 50 straight to 56, the updateRolesAndPermissionsForAllThreads would fail because the queries attempt to fetch a roles.special_role columm, but that doesn't yet exist in their database state.
Here, we prefix migration 52 with the ALTER TABLE statement so we can add in a special_role column before the updateRolesAndPermissionsForAllThreads so the user's DB state has it before attempting to run any queries with it
Addresses ENG-5999