Commit 5536de83 authored by Toon Claes's avatar Toon Claes

Merge branch 'nicolasdular/add-max-namepsace-storage-limit-column' into 'master'

Add namespace_storage_size_limit to application settings

Closes #211856

See merge request gitlab-org/gitlab!27786
parents a4e45f3a 9d85c62a
---
title: Add namespace_storage_size_limit to application settings
merge_request: 27786
author:
type: added
# frozen_string_literal: true
class AddNamespaceStorageSizeLimitToApplicationSettings < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_column_with_default :application_settings, :namespace_storage_size_limit, :bigint, default: 0
end
def down
remove_column :application_settings, :namespace_storage_size_limit
end
end
...@@ -395,7 +395,8 @@ CREATE TABLE public.application_settings ( ...@@ -395,7 +395,8 @@ CREATE TABLE public.application_settings (
prevent_merge_requests_committers_approval boolean DEFAULT false NOT NULL, prevent_merge_requests_committers_approval boolean DEFAULT false NOT NULL,
email_restrictions_enabled boolean DEFAULT false NOT NULL, email_restrictions_enabled boolean DEFAULT false NOT NULL,
email_restrictions text, email_restrictions text,
npm_package_requests_forwarding boolean DEFAULT true NOT NULL npm_package_requests_forwarding boolean DEFAULT true NOT NULL,
namespace_storage_size_limit bigint DEFAULT 0 NOT NULL
); );
CREATE SEQUENCE public.application_settings_id_seq CREATE SEQUENCE public.application_settings_id_seq
...@@ -12750,5 +12751,6 @@ INSERT INTO "schema_migrations" (version) VALUES ...@@ -12750,5 +12751,6 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200319123041'), ('20200319123041'),
('20200319203901'), ('20200319203901'),
('20200323075043'), ('20200323075043'),
('20200323122201'); ('20200323122201'),
('20200324115359');
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment