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
7348d34c
Commit
7348d34c
authored
Sep 16, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migrate tags statement
parent
5772faf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/ci/migrate/tags.rb
lib/ci/migrate/tags.rb
+1
-1
No files found.
lib/ci/migrate/tags.rb
View file @
7348d34c
...
@@ -40,7 +40,7 @@ module Ci
...
@@ -40,7 +40,7 @@ module Ci
tags
=
ActiveRecord
::
Base
.
connection
.
select_all
(
tags
=
ActiveRecord
::
Base
.
connection
.
select_all
(
'select ci_tags.name from ci_tags '
+
'select ci_tags.name from ci_tags '
+
'join ci_taggings on ci_tags.id = ci_taggings.tag_id '
+
'join ci_taggings on ci_tags.id = ci_taggings.tag_id '
+
"where taggable_type =
#{
ActiveRecord
::
Base
::
sanitize
(
type
)
}
and taggable_id =
#{
ActiveRecord
::
Base
::
sanitize
(
id
)
}
and context =
\"
tags
\"
"
"where taggable_type =
#{
ActiveRecord
::
Base
::
sanitize
(
type
)
}
and taggable_id =
#{
ActiveRecord
::
Base
::
sanitize
(
id
)
}
and context =
'tags'
"
)
)
tags
.
map
{
|
tag
|
tag
[
'name'
]
}
tags
.
map
{
|
tag
|
tag
[
'name'
]
}
end
end
...
...
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