LoginSignup
1

More than 5 years have passed since last update.

GitLabでユーザのプロジェクト作成数の上限を変更する

Last updated at Posted at 2017-09-18

Postgresを操作する

sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -d gitlabhq_production

ユーザのプロジェクト作成上限を変更する

  • GitLabのバグのようだが、ユーザのプロジェクト作成数の上限が変更できない。

    • どんな値を入力しても0になってしまう。
  • 現在の上限数を確認

psql> select name, projects_limit from users;
  • 上限数を変更
psql> update users set projects_limit=10000;
psql> commit;

psqlのコマンド

コマンド 説明
\l データベースの一覧
\d テーブル一覧
\d テーブル名 テーブルの項目(フィールド)確認
\i sqlファイル名 SQL(スクリプト)ファイルの実行
\q psql切断

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1