Commit 9d85c62a authored by nicolasdular's avatar nicolasdular

Add namespace_storage_size_limit to application settings

parent 6ea0c852
---
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
...@@ -12749,5 +12750,6 @@ INSERT INTO "schema_migrations" (version) VALUES ...@@ -12749,5 +12750,6 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200318175008'), ('20200318175008'),
('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