Commit 07d9344a authored by Andreas Brandl's avatar Andreas Brandl

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

Add pipeline_artifacts_size to root_storage_statistics

See merge request gitlab-org/gitlab!40425
parents 66793be6 50d59402
---
title: Add pipeline_artifacts_size to root_storage_statistics
merge_request: 40425
author:
type: added
# frozen_string_literal: true
class AddPipelineArtifactsSizeToRootStorageStatistics < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :namespace_root_storage_statistics, :pipeline_artifacts_size, :bigint, default: 0, null: false
end
end
def down
with_lock_retries do
remove_column :namespace_root_storage_statistics, :pipeline_artifacts_size, :bigint, default: 0, null: false
end
end
end
330340ef4d525e1e13ed28d71d23594627453955ce5f810e370d07bb3623bf35
\ No newline at end of file
......@@ -13342,7 +13342,8 @@ CREATE TABLE public.namespace_root_storage_statistics (
build_artifacts_size bigint DEFAULT 0 NOT NULL,
storage_size bigint DEFAULT 0 NOT NULL,
packages_size bigint DEFAULT 0 NOT NULL,
snippets_size bigint DEFAULT 0 NOT NULL
snippets_size bigint DEFAULT 0 NOT NULL,
pipeline_artifacts_size bigint DEFAULT 0 NOT NULL
);
CREATE TABLE public.namespace_settings (
......
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