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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
cb49d68c
Commit
cb49d68c
authored
May 03, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use smallint for runner_type since its an enum
parent
15b10c34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
db/migrate/20180430101916_add_runner_type_to_ci_runners.rb
db/migrate/20180430101916_add_runner_type_to_ci_runners.rb
+1
-1
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20180430101916_add_runner_type_to_ci_runners.rb
View file @
cb49d68c
...
@@ -4,6 +4,6 @@ class AddRunnerTypeToCiRunners < ActiveRecord::Migration
...
@@ -4,6 +4,6 @@ class AddRunnerTypeToCiRunners < ActiveRecord::Migration
DOWNTIME
=
false
DOWNTIME
=
false
def
change
def
change
add_column
:ci_runners
,
:runner_type
,
:
integer
add_column
:ci_runners
,
:runner_type
,
:
smallint
end
end
end
end
db/schema.rb
View file @
cb49d68c
...
@@ -480,7 +480,7 @@ ActiveRecord::Schema.define(version: 20180503150427) do
...
@@ -480,7 +480,7 @@ ActiveRecord::Schema.define(version: 20180503150427) do
t
.
integer
"access_level"
,
default:
0
,
null:
false
t
.
integer
"access_level"
,
default:
0
,
null:
false
t
.
string
"ip_address"
t
.
string
"ip_address"
t
.
integer
"maximum_timeout"
t
.
integer
"maximum_timeout"
t
.
integer
"runner_type"
t
.
integer
"runner_type"
,
limit:
2
end
end
add_index
"ci_runners"
,
[
"contacted_at"
],
name:
"index_ci_runners_on_contacted_at"
,
using: :btree
add_index
"ci_runners"
,
[
"contacted_at"
],
name:
"index_ci_runners_on_contacted_at"
,
using: :btree
...
...
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