Commit bc281334 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch 'mo-add-pipeline-artifacts-size-to-project-statistics' into 'master'

Add pipeline_artifacts_size to ProjectStatistics

See merge request gitlab-org/gitlab!39607
parents 73fcb9df 85a7cdd8
---
title: Add pipeline_artifacts_size to project_statistics
merge_request: 39607
author:
type: added
# frozen_string_literal: true
class AddPipelineArtifactsSizeToProjectStatistics < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :project_statistics, :pipeline_artifacts_size, :bigint, default: 0, null: false
end
end
def down
with_lock_retries do
remove_column :project_statistics, :pipeline_artifacts_size, :bigint, default: 0, null: false
end
end
end
b488cd2049300b293f584f193edc5435855f7bc85989648a3310dabc609d0af4
\ No newline at end of file
......@@ -14556,7 +14556,8 @@ CREATE TABLE public.project_statistics (
shared_runners_seconds_last_reset timestamp without time zone,
packages_size bigint DEFAULT 0 NOT NULL,
wiki_size bigint,
snippets_size bigint
snippets_size bigint,
pipeline_artifacts_size bigint DEFAULT 0 NOT NULL
);
CREATE SEQUENCE public.project_statistics_id_seq
......
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