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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
def48f0a
Commit
def48f0a
authored
Oct 21, 2015
by
Robert Speicher
Committed by
Robert Speicher
Oct 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'add-missing-migrations' into 'master'
Add missing migrations See merge request !1652
parent
595fc4d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
db/migrate/20151019111551_fix_build_tags.rb
db/migrate/20151019111551_fix_build_tags.rb
+5
-0
db/migrate/20151019111703_fail_build_without_names.rb
db/migrate/20151019111703_fail_build_without_names.rb
+5
-0
db/migrate/20151020173906_add_ci_builds_index_for_status.rb
db/migrate/20151020173906_add_ci_builds_index_for_status.rb
+5
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20151019111551_fix_build_tags.rb
0 → 100644
View file @
def48f0a
class
FixBuildTags
<
ActiveRecord
::
Migration
def
change
execute
(
"UPDATE taggings SET taggable_type='CommitStatus' WHERE taggable_type='Ci::Build'"
)
end
end
db/migrate/20151019111703_fail_build_without_names.rb
0 → 100644
View file @
def48f0a
class
FailBuildWithoutNames
<
ActiveRecord
::
Migration
def
change
execute
(
"UPDATE ci_builds SET status='failed' WHERE name IS NULL AND status='pending'"
)
end
end
db/migrate/20151020173906_add_ci_builds_index_for_status.rb
0 → 100644
View file @
def48f0a
class
AddCiBuildsIndexForStatus
<
ActiveRecord
::
Migration
def
change
add_index
:ci_builds
,
[
:commit_id
,
:status
,
:type
]
end
end
db/schema.rb
View file @
def48f0a
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201510
161957
06
)
do
ActiveRecord
::
Schema
.
define
(
version:
201510
201739
06
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -110,6 +110,7 @@ ActiveRecord::Schema.define(version: 20151016195706) do
end
add_index
"ci_builds"
,
[
"commit_id"
,
"stage_idx"
,
"created_at"
],
name:
"index_ci_builds_on_commit_id_and_stage_idx_and_created_at"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
,
"status"
,
"type"
],
name:
"index_ci_builds_on_commit_id_and_status_and_type"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
,
"type"
,
"name"
,
"ref"
],
name:
"index_ci_builds_on_commit_id_and_type_and_name_and_ref"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
,
"type"
,
"ref"
],
name:
"index_ci_builds_on_commit_id_and_type_and_ref"
,
using: :btree
add_index
"ci_builds"
,
[
"commit_id"
],
name:
"index_ci_builds_on_commit_id"
,
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