Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9d85c62a
Commit
9d85c62a
authored
Mar 23, 2020
by
nicolasdular
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add namespace_storage_size_limit to application settings
parent
6ea0c852
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
changelogs/unreleased/nicolasdular-add-max-namepsace-storage-limit-column.yml
...d/nicolasdular-add-max-namepsace-storage-limit-column.yml
+5
-0
db/migrate/20200324115359_add_namespace_storage_size_limit_to_application_settings.rb
...d_namespace_storage_size_limit_to_application_settings.rb
+16
-0
db/structure.sql
db/structure.sql
+4
-2
No files found.
changelogs/unreleased/nicolasdular-add-max-namepsace-storage-limit-column.yml
0 → 100644
View file @
9d85c62a
---
title
:
Add namespace_storage_size_limit to application settings
merge_request
:
27786
author
:
type
:
added
db/migrate/20200324115359_add_namespace_storage_size_limit_to_application_settings.rb
0 → 100644
View file @
9d85c62a
# 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
db/structure.sql
View file @
9d85c62a
...
@@ -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'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment