Commit 983229d4 authored by Krasimir Angelov's avatar Krasimir Angelov

Merge branch 'add-migration-for-plan-limits' into 'master'

Add repository size to Plan Limits

See merge request gitlab-org/gitlab!83819
parents 2c6c6e93 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
29dfbf020302789f70365a69db5cbc24b9030f0be81666833c0ca8a4a8b1a681
\ No newline at end of file
......@@ -18638,7 +18638,8 @@ CREATE TABLE plan_limits (
dotenv_variables integer DEFAULT 20 NOT NULL,
dotenv_size integer DEFAULT 5120 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
......@@ -214,6 +214,7 @@ RSpec.describe PlanLimits do
daily_invites
web_hook_calls
ci_daily_pipeline_schedule_triggers
repository_size
] + disabled_max_artifact_size_columns
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