Commit 50afaa9f authored by Zehua Zhang's avatar Zehua Zhang

Add repository size to Plan Limits

Changelog: changed
parent 3c38adc1
# 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
29dfbf020302789f70365a69db5cbc24b9030f0be81666833c0ca8a4a8b1a681
\ No newline at end of file
...@@ -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
...@@ -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
......
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