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
a063f244
Commit
a063f244
authored
Sep 25, 2019
by
Vladimir Shushlin
Committed by
Andreas Brandl
Sep 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add columns pages/artifacts size limits
* projects * namespaces
parent
0469a938
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
0 deletions
+47
-0
changelogs/unreleased/pages-per-project-size-limit-db.yml
changelogs/unreleased/pages-per-project-size-limit-db.yml
+5
-0
db/migrate/20190911115056_add_projects_max_pages_size.rb
db/migrate/20190911115056_add_projects_max_pages_size.rb
+9
-0
db/migrate/20190911115109_add_namespaces_max_pages_size.rb
db/migrate/20190911115109_add_namespaces_max_pages_size.rb
+9
-0
db/migrate/20190911115207_add_projects_max_artifacts_size.rb
db/migrate/20190911115207_add_projects_max_artifacts_size.rb
+9
-0
db/migrate/20190911115222_add_namespaces_max_artifacts_size.rb
...grate/20190911115222_add_namespaces_max_artifacts_size.rb
+9
-0
db/schema.rb
db/schema.rb
+4
-0
lib/gitlab/import_export/import_export.yml
lib/gitlab/import_export/import_export.yml
+2
-0
No files found.
changelogs/unreleased/pages-per-project-size-limit-db.yml
0 → 100644
View file @
a063f244
---
title
:
Add columns for per project/group max pages/artifacts sizes
merge_request
:
17231
author
:
type
:
added
db/migrate/20190911115056_add_projects_max_pages_size.rb
0 → 100644
View file @
a063f244
# frozen_string_literal: true
class
AddProjectsMaxPagesSize
<
ActiveRecord
::
Migration
[
5.2
]
DOWNTIME
=
false
def
change
add_column
:projects
,
:max_pages_size
,
:integer
end
end
db/migrate/20190911115109_add_namespaces_max_pages_size.rb
0 → 100644
View file @
a063f244
# frozen_string_literal: true
class
AddNamespacesMaxPagesSize
<
ActiveRecord
::
Migration
[
5.2
]
DOWNTIME
=
false
def
change
add_column
:namespaces
,
:max_pages_size
,
:integer
end
end
db/migrate/20190911115207_add_projects_max_artifacts_size.rb
0 → 100644
View file @
a063f244
# frozen_string_literal: true
class
AddProjectsMaxArtifactsSize
<
ActiveRecord
::
Migration
[
5.2
]
DOWNTIME
=
false
def
change
add_column
:projects
,
:max_artifacts_size
,
:integer
end
end
db/migrate/20190911115222_add_namespaces_max_artifacts_size.rb
0 → 100644
View file @
a063f244
# frozen_string_literal: true
class
AddNamespacesMaxArtifactsSize
<
ActiveRecord
::
Migration
[
5.2
]
DOWNTIME
=
false
def
change
add_column
:namespaces
,
:max_artifacts_size
,
:integer
end
end
db/schema.rb
View file @
a063f244
...
...
@@ -2317,6 +2317,8 @@ ActiveRecord::Schema.define(version: 2019_09_19_162036) do
t
.
integer
"last_ci_minutes_usage_notification_level"
t
.
integer
"subgroup_creation_level"
,
default:
1
t
.
boolean
"emails_disabled"
t
.
integer
"max_pages_size"
t
.
integer
"max_artifacts_size"
t
.
index
[
"created_at"
],
name:
"index_namespaces_on_created_at"
t
.
index
[
"custom_project_templates_group_id"
,
"type"
],
name:
"index_namespaces_on_custom_project_templates_group_id_and_type"
,
where:
"(custom_project_templates_group_id IS NOT NULL)"
t
.
index
[
"file_template_project_id"
],
name:
"index_namespaces_on_file_template_project_id"
...
...
@@ -2909,6 +2911,8 @@ ActiveRecord::Schema.define(version: 2019_09_19_162036) do
t
.
boolean
"merge_requests_disable_committers_approval"
t
.
boolean
"require_password_to_approve"
t
.
boolean
"emails_disabled"
t
.
integer
"max_pages_size"
t
.
integer
"max_artifacts_size"
t
.
index
[
"archived"
,
"pending_delete"
,
"merge_requests_require_code_owner_approval"
],
name:
"projects_requiring_code_owner_approval"
,
where:
"((pending_delete = false) AND (archived = false) AND (merge_requests_require_code_owner_approval = true))"
t
.
index
[
"created_at"
],
name:
"index_projects_on_created_at"
t
.
index
[
"creator_id"
],
name:
"index_projects_on_creator_id"
...
...
lib/gitlab/import_export/import_export.yml
View file @
a063f244
...
...
@@ -143,6 +143,8 @@ excluded_attributes:
-
:mirror_last_update_at
-
:mirror_last_successful_update_at
-
:emails_disabled
-
:max_pages_size
-
:max_artifacts_size
namespaces
:
-
:runners_token
-
:runners_token_encrypted
...
...
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