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
e683eecd
Commit
e683eecd
authored
Sep 02, 2016
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support MySQL too, when removing gitorious from import_sources
parent
2246218c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
db/migrate/20160902122721_drop_gitorious_field_from_application_settings.rb
...2122721_drop_gitorious_field_from_application_settings.rb
+5
-1
No files found.
db/migrate/20160902122721_drop_gitorious_field_from_application_settings.rb
View file @
e683eecd
...
@@ -7,7 +7,11 @@ class DropGitoriousFieldFromApplicationSettings < ActiveRecord::Migration
...
@@ -7,7 +7,11 @@ class DropGitoriousFieldFromApplicationSettings < ActiveRecord::Migration
def
up
def
up
require
'yaml'
require
'yaml'
yaml
=
connection
.
execute
(
'SELECT import_sources FROM application_settings;'
).
values
[
0
][
0
]
yaml
=
if
Gitlab
::
Database
.
postgresql?
connection
.
execute
(
'SELECT import_sources FROM application_settings;'
).
values
[
0
][
0
]
else
connection
.
execute
(
'SELECT import_sources FROM application_settings;'
).
first
[
0
]
end
yaml
=
YAML
.
safe_load
(
yaml
)
yaml
=
YAML
.
safe_load
(
yaml
)
yaml
.
delete
'gitorious'
yaml
.
delete
'gitorious'
...
...
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