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
27da8ced
Commit
27da8ced
authored
Mar 20, 2020
by
Aleksei Lipniagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cost factor fields to ci runners
parent
1c3c3a7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
changelogs/unreleased/210570-add-cost-factors-to-ci-runners.yml
...logs/unreleased/210570-add-cost-factors-to-ci-runners.yml
+5
-0
db/migrate/20200320112455_add_cost_factor_fileds_to_ci_runners.rb
...te/20200320112455_add_cost_factor_fileds_to_ci_runners.rb
+19
-0
db/structure.sql
db/structure.sql
+4
-1
No files found.
changelogs/unreleased/210570-add-cost-factors-to-ci-runners.yml
0 → 100644
View file @
27da8ced
---
title
:
Add cost factor fields to ci runners
merge_request
:
27666
author
:
type
:
added
db/migrate/20200320112455_add_cost_factor_fileds_to_ci_runners.rb
0 → 100644
View file @
27da8ced
# frozen_string_literal: true
class
AddCostFactorFiledsToCiRunners
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
(
:ci_runners
,
:public_projects_minutes_cost_factor
,
:float
,
allow_null:
false
,
default:
0.0
)
add_column_with_default
(
:ci_runners
,
:private_projects_minutes_cost_factor
,
:float
,
allow_null:
false
,
default:
1.0
)
end
def
down
remove_column
(
:ci_runners
,
:public_projects_minutes_cost_factor
)
remove_column
(
:ci_runners
,
:private_projects_minutes_cost_factor
)
end
end
db/structure.sql
View file @
27da8ced
...
...
@@ -1310,7 +1310,9 @@ CREATE TABLE public.ci_runners (
ip_address
character
varying
,
maximum_timeout
integer
,
runner_type
smallint
NOT
NULL
,
token_encrypted
character
varying
token_encrypted
character
varying
,
public_projects_minutes_cost_factor
double
precision
DEFAULT
0
.
0
NOT
NULL
,
private_projects_minutes_cost_factor
double
precision
DEFAULT
1
.
0
NOT
NULL
);
CREATE
SEQUENCE
public
.
ci_runners_id_seq
...
...
@@ -12751,6 +12753,7 @@ INSERT INTO "schema_migrations" (version) VALUES
(
'20200318175008'
),
(
'20200319123041'
),
(
'20200319203901'
),
(
'20200320112455'
),
(
'20200320123839'
),
(
'20200323075043'
),
(
'20200323122201'
),
...
...
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