Commit 50d59402 authored by Maxime Orefice's avatar Maxime Orefice

Add pipeline_artifacts_size to root_storage_statistics

parent cb6244c1
---
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