Commit 33e4c4e6 authored by Vijay Hawoldar's avatar Vijay Hawoldar

Adds dependency_proxy_size to root storage stats

To enable efficiently storing the total dependency proxy storage size
at the root level storage statistics

Changelog:added
parent bdee564d
# frozen_string_literal: true
class AddDependencyProxySizeToNamespaceRootStorageStatistics < Gitlab::Database::Migration[1.0]
def change
add_column :namespace_root_storage_statistics, :dependency_proxy_size, :bigint, default: 0, null: false
end
end
723db0d234a4dadfdad68a92c249ec0b42e519297f48bcb843e89c1ad97032c7
\ No newline at end of file
...@@ -16509,7 +16509,8 @@ CREATE TABLE namespace_root_storage_statistics ( ...@@ -16509,7 +16509,8 @@ CREATE TABLE namespace_root_storage_statistics (
packages_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, pipeline_artifacts_size bigint DEFAULT 0 NOT NULL,
uploads_size bigint DEFAULT 0 NOT NULL uploads_size bigint DEFAULT 0 NOT NULL,
dependency_proxy_size bigint DEFAULT 0 NOT NULL
); );
CREATE TABLE namespace_settings ( CREATE TABLE 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