Commit 8e35608e authored by Tiger Watson's avatar Tiger Watson

Merge branch 'fj-224486-add-snippets-size-column-to-root-storage-statistics' into 'master'

Add snippets_size to namespace_root_storage_statistics table

See merge request gitlab-org/gitlab!35311
parents 1b0feb52 7eb4ad4b
---
title: Add snippets_size to namespace_root_storage_statistics
merge_request: 35311
author:
type: changed
# frozen_string_literal: true
class AddSnippetsSizeToRootStorageStatistics < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :namespace_root_storage_statistics, :snippets_size, :bigint, default: 0, null: false
end
end
def down
with_lock_retries do
remove_column :namespace_root_storage_statistics, :snippets_size
end
end
end
...@@ -12975,7 +12975,8 @@ CREATE TABLE public.namespace_root_storage_statistics ( ...@@ -12975,7 +12975,8 @@ CREATE TABLE public.namespace_root_storage_statistics (
wiki_size bigint DEFAULT 0 NOT NULL, wiki_size bigint DEFAULT 0 NOT NULL,
build_artifacts_size bigint DEFAULT 0 NOT NULL, build_artifacts_size bigint DEFAULT 0 NOT NULL,
storage_size bigint DEFAULT 0 NOT NULL, storage_size bigint DEFAULT 0 NOT NULL,
packages_size bigint DEFAULT 0 NOT NULL packages_size bigint DEFAULT 0 NOT NULL,
snippets_size bigint DEFAULT 0 NOT NULL
); );
CREATE TABLE public.namespace_statistics ( CREATE TABLE public.namespace_statistics (
...@@ -23456,6 +23457,7 @@ COPY "schema_migrations" (version) FROM STDIN; ...@@ -23456,6 +23457,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200624075411 20200624075411
20200624222443 20200624222443
20200625045442 20200625045442
20200625082258
20200625190458 20200625190458
20200626130220 20200626130220
\. \.
......
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