Skip to content
Snippets Groups Projects
Commit 05abd03e authored by Jon Jenkins's avatar Jon Jenkins :red_circle:
Browse files

Merge branch...

Merge branch '426511-db-add-max_workspaces-and-max_workspaces_per_user-field-to-remote_development_agent_configs' into 'master' 

Add workspaces_quota and workspaces_per_user_quota fields

See merge request !137089



Merged-by: Jon Jenkins's avatarJon Jenkins <jjenkins@gitlab.com>
Approved-by: default avatarHunar Khanna <hkhanna@gitlab.com>
Approved-by: Jon Jenkins's avatarJon Jenkins <jjenkins@gitlab.com>
Co-authored-by: Alper Akgun's avatarAlper Akgun <aakgun@gitlab.com>
parents 20d33dec db969acd
No related branches found
No related tags found
1 merge request!137089Add workspaces_quota and workspaces_per_user_quota fields
Pipeline #1081122348 passed
# frozen_string_literal: true
class AddWorkspacesQuotaToRemoteDevelopmentAgentConfigs < Gitlab::Database::Migration[2.2]
milestone '16.7'
enable_lock_retries!
def change
add_column :remote_development_agent_configs, :workspaces_quota, :bigint, default: -1, null: false
end
end
# frozen_string_literal: true
class AddWorkspacesPerUserQuotaToRemoteDevelopmentAgentConfigs < Gitlab::Database::Migration[2.2]
milestone '16.7'
enable_lock_retries!
def change
add_column :remote_development_agent_configs, :workspaces_per_user_quota, :bigint, default: -1, null: false
end
end
9acade4bdc946d1adc9f68b39ae17a4ca08fbadb48eb59fed414c0ad0bc288fc
\ No newline at end of file
9d2a33c235b81e7e3e552f26c71307a4ef2f42f9698c1e4f7a2f5d3c0377fec0
\ No newline at end of file
......@@ -22632,6 +22632,8 @@ CREATE TABLE remote_development_agent_configs (
max_resources_per_workspace jsonb DEFAULT '{}'::jsonb NOT NULL,
max_workspaces bigint DEFAULT '-1'::integer NOT NULL,
max_workspaces_per_user bigint DEFAULT '-1'::integer NOT NULL,
workspaces_quota bigint DEFAULT '-1'::integer NOT NULL,
workspaces_per_user_quota bigint DEFAULT '-1'::integer NOT NULL,
CONSTRAINT check_72947a4495 CHECK ((char_length(gitlab_workspaces_proxy_namespace) <= 63)),
CONSTRAINT check_9f5cd54d1c CHECK ((char_length(dns_zone) <= 256))
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment