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
50afaa9f
Commit
50afaa9f
authored
Mar 29, 2022
by
Zehua Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add repository size to Plan Limits
Changelog: changed
parent
3c38adc1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
db/migrate/20220329061545_add_repository_size_to_plan_limits.rb
...rate/20220329061545_add_repository_size_to_plan_limits.rb
+11
-0
db/schema_migrations/20220329061545
db/schema_migrations/20220329061545
+1
-0
db/structure.sql
db/structure.sql
+2
-1
spec/models/plan_limits_spec.rb
spec/models/plan_limits_spec.rb
+1
-0
No files found.
db/migrate/20220329061545_add_repository_size_to_plan_limits.rb
0 → 100644
View file @
50afaa9f
# frozen_string_literal: true
class
AddRepositorySizeToPlanLimits
<
Gitlab
::
Database
::
Migration
[
1.0
]
def
up
add_column
(
:plan_limits
,
:repository_size
,
:bigint
,
default:
0
,
null:
false
)
end
def
down
remove_column
(
:plan_limits
,
:repository_size
)
end
end
db/schema_migrations/20220329061545
0 → 100644
View file @
50afaa9f
29dfbf020302789f70365a69db5cbc24b9030f0be81666833c0ca8a4a8b1a681
\ No newline at end of file
db/structure.sql
View file @
50afaa9f
...
@@ -18633,7 +18633,8 @@ CREATE TABLE plan_limits (
...
@@ -18633,7 +18633,8 @@ CREATE TABLE plan_limits (
dotenv_variables integer DEFAULT 20 NOT NULL,
dotenv_variables integer DEFAULT 20 NOT NULL,
dotenv_size integer DEFAULT 5120 NOT NULL,
dotenv_size integer DEFAULT 5120 NOT NULL,
pipeline_triggers integer DEFAULT 25000 NOT NULL,
pipeline_triggers integer DEFAULT 25000 NOT NULL,
project_ci_secure_files integer DEFAULT 100 NOT NULL
project_ci_secure_files integer DEFAULT 100 NOT NULL,
repository_size bigint DEFAULT 0 NOT NULL
);
);
CREATE SEQUENCE plan_limits_id_seq
CREATE SEQUENCE plan_limits_id_seq
spec/models/plan_limits_spec.rb
View file @
50afaa9f
...
@@ -214,6 +214,7 @@ RSpec.describe PlanLimits do
...
@@ -214,6 +214,7 @@ RSpec.describe PlanLimits do
daily_invites
daily_invites
web_hook_calls
web_hook_calls
ci_daily_pipeline_schedule_triggers
ci_daily_pipeline_schedule_triggers
repository_size
]
+
disabled_max_artifact_size_columns
]
+
disabled_max_artifact_size_columns
end
end
...
...
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