Skip to content

Instantly share code, notes, and snippets.

@Mikulas
Created January 7, 2019 11:42
Show Gist options
  • Save Mikulas/f8801fef47908e923031740f41b88ac8 to your computer and use it in GitHub Desktop.
Save Mikulas/f8801fef47908e923031740f41b88ac8 to your computer and use it in GitHub Desktop.
Disable GitLab profile status (current status)
ALTER TABLE user_statuses
ADD CONSTRAINT "disable_users_statuses" CHECK ("message" = '_disabled_feature_');
@Mikulas
Copy link
Author

Mikulas commented Jan 7, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment