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
Léo-Paul Géneau
gitlab-ce
Commits
43dd213b
Commit
43dd213b
authored
Apr 17, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pipeline stage index column
parent
a544f6ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
db/migrate/20180417101940_add_index_to_ci_stage.rb
db/migrate/20180417101940_add_index_to_ci_stage.rb
+9
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20180417101940_add_index_to_ci_stage.rb
0 → 100644
View file @
43dd213b
class
AddIndexToCiStage
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
add_column
:ci_stages
,
:index
,
:integer
end
end
db/schema.rb
View file @
43dd213b
...
...
@@ -486,6 +486,7 @@ ActiveRecord::Schema.define(version: 20180418053107) do
t
.
string
"name"
t
.
integer
"status"
t
.
integer
"lock_version"
t
.
integer
"index"
end
add_index
"ci_stages"
,
[
"pipeline_id"
,
"name"
],
name:
"index_ci_stages_on_pipeline_id_and_name"
,
unique:
true
,
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