Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7eb4ad4b
Commit
7eb4ad4b
authored
Jun 25, 2020
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add snippets_size to namespace_root_storage_statistics table
parent
1b0feb52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
changelogs/unreleased/fj-224486-add-snippets-size-column-to-root-storage-statistics.yml
...6-add-snippets-size-column-to-root-storage-statistics.yml
+5
-0
db/migrate/20200625082258_add_snippets_size_to_root_storage_statistics.rb
...625082258_add_snippets_size_to_root_storage_statistics.rb
+19
-0
db/structure.sql
db/structure.sql
+3
-1
No files found.
changelogs/unreleased/fj-224486-add-snippets-size-column-to-root-storage-statistics.yml
0 → 100644
View file @
7eb4ad4b
---
title
:
Add snippets_size to namespace_root_storage_statistics
merge_request
:
35311
author
:
type
:
changed
db/migrate/20200625082258_add_snippets_size_to_root_storage_statistics.rb
0 → 100644
View file @
7eb4ad4b
# 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
db/structure.sql
View file @
7eb4ad4b
...
...
@@ -12975,7 +12975,8 @@ CREATE TABLE public.namespace_root_storage_statistics (
wiki_size
bigint
DEFAULT
0
NOT
NULL
,
build_artifacts_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
(
...
...
@@ -23456,6 +23457,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200624075411
20200624222443
20200625045442
20200625082258
20200625190458
20200626130220
\
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment