Maximum value for project_authorizations.id was reached

This column's type was set to integer which is a 4 bytes integer, allowing a maximum value of 2147483647. We hit this limit when we started scheduling the refreshing of project authorizations for all users. Fixing this required us to change the column type to bigint, but it's possible we'll hit this limit again (though we now have a lot more values available). See the following links for more information:

Screenshot of the increase in 500 errors due to this:

screen_shot_2017-01-06_at_17.58.16