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
34206122
Commit
34206122
authored
Oct 11, 2021
by
Fabio Pitino
Committed by
Mayra Cabrera
Oct 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add shared_runners_duration column to CI minutes tracking
parent
15708400
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
0 deletions
+22
-0
db/migrate/20211008181451_add_shared_runners_duration_to_ci_namespace_monthly_usages.rb
...shared_runners_duration_to_ci_namespace_monthly_usages.rb
+9
-0
db/migrate/20211008182954_add_shared_runners_duration_to_ci_project_monthly_usages.rb
...d_shared_runners_duration_to_ci_project_monthly_usages.rb
+9
-0
db/schema_migrations/20211008181451
db/schema_migrations/20211008181451
+1
-0
db/schema_migrations/20211008182954
db/schema_migrations/20211008182954
+1
-0
db/structure.sql
db/structure.sql
+2
-0
No files found.
db/migrate/20211008181451_add_shared_runners_duration_to_ci_namespace_monthly_usages.rb
0 → 100644
View file @
34206122
# frozen_string_literal: true
class
AddSharedRunnersDurationToCiNamespaceMonthlyUsages
<
Gitlab
::
Database
::
Migration
[
1.0
]
enable_lock_retries!
def
change
add_column
:ci_namespace_monthly_usages
,
:shared_runners_duration
,
:integer
,
default:
0
,
null:
false
end
end
db/migrate/20211008182954_add_shared_runners_duration_to_ci_project_monthly_usages.rb
0 → 100644
View file @
34206122
# frozen_string_literal: true
class
AddSharedRunnersDurationToCiProjectMonthlyUsages
<
Gitlab
::
Database
::
Migration
[
1.0
]
enable_lock_retries!
def
change
add_column
:ci_project_monthly_usages
,
:shared_runners_duration
,
:integer
,
default:
0
,
null:
false
end
end
db/schema_migrations/20211008181451
0 → 100644
View file @
34206122
b4104ebb3d99100ed5b6831174af563ea7cda46428007e30219198b910313b05
\ No newline at end of file
db/schema_migrations/20211008182954
0 → 100644
View file @
34206122
d16b96a960e03e50135802885f5b8c44168d2413f3db1f53ac15389a33dddc61
\ No newline at end of file
db/structure.sql
View file @
34206122
...
@@ -11645,6 +11645,7 @@ CREATE TABLE ci_namespace_monthly_usages (
...
@@ -11645,6 +11645,7 @@ CREATE TABLE ci_namespace_monthly_usages (
additional_amount_available integer DEFAULT 0 NOT NULL,
additional_amount_available integer DEFAULT 0 NOT NULL,
amount_used numeric(18,2) DEFAULT 0.0 NOT NULL,
amount_used numeric(18,2) DEFAULT 0.0 NOT NULL,
notification_level smallint DEFAULT 100 NOT NULL,
notification_level smallint DEFAULT 100 NOT NULL,
shared_runners_duration integer DEFAULT 0 NOT NULL,
CONSTRAINT ci_namespace_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone)))
CONSTRAINT ci_namespace_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone)))
);
);
...
@@ -11889,6 +11890,7 @@ CREATE TABLE ci_project_monthly_usages (
...
@@ -11889,6 +11890,7 @@ CREATE TABLE ci_project_monthly_usages (
project_id bigint NOT NULL,
project_id bigint NOT NULL,
date date NOT NULL,
date date NOT NULL,
amount_used numeric(18,2) DEFAULT 0.0 NOT NULL,
amount_used numeric(18,2) DEFAULT 0.0 NOT NULL,
shared_runners_duration integer DEFAULT 0 NOT NULL,
CONSTRAINT ci_project_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone)))
CONSTRAINT ci_project_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone)))
);
);
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