Created
January 7, 2019 11:42
-
-
Save Mikulas/f8801fef47908e923031740f41b88ac8 to your computer and use it in GitHub Desktop.
Disable GitLab profile status (current status)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE user_statuses | |
ADD CONSTRAINT "disable_users_statuses" CHECK ("message" = '_disabled_feature_'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This patch prevents GitLab from inserting the user status into
user_statuses
table, which in turn disables user statuses. This does not remove the option to set the status from UI and if user attempts to set a status, they are shown an error.