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
Jérome Perrin
gitlab-ce
Commits
2246218c
Commit
2246218c
authored
Sep 02, 2016
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove gitorious from import_sources on ApplicationSetting model
parent
553180e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
CHANGELOG
CHANGELOG
+1
-0
db/migrate/20160902122721_drop_gitorious_field_from_application_settings.rb
...2122721_drop_gitorious_field_from_application_settings.rb
+31
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
CHANGELOG
View file @
2246218c
...
@@ -90,6 +90,7 @@ v 8.11.5 (unreleased)
...
@@ -90,6 +90,7 @@ v 8.11.5 (unreleased)
- Fix member expiration date picker after update
- Fix member expiration date picker after update
- Fix suggested colors options for new labels in the admin area. !6138
- Fix suggested colors options for new labels in the admin area. !6138
- Fix GitLab import button
- Fix GitLab import button
- Remove gitorious from import_sources
v 8.11.4
v 8.11.4
- Fix resolving conflicts on forks. !6082
- Fix resolving conflicts on forks. !6082
...
...
db/migrate/20160902122721_drop_gitorious_field_from_application_settings.rb
0 → 100644
View file @
2246218c
class
DropGitoriousFieldFromApplicationSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
# After the deploy the caches will be cold anyway
DOWNTIME
=
false
def
up
require
'yaml'
yaml
=
connection
.
execute
(
'SELECT import_sources FROM application_settings;'
).
values
[
0
][
0
]
yaml
=
YAML
.
safe_load
(
yaml
)
yaml
.
delete
'gitorious'
# No need for a WHERE clause as there is only one
connection
.
execute
(
"UPDATE application_settings SET import_sources =
#{
update_yaml
(
yaml
)
}
"
)
end
def
down
# noop, gitorious still yields a 404 anyway
end
private
def
connection
ActiveRecord
::
Base
.
connection
end
def
update_yaml
(
yaml
)
connection
.
quote
(
YAML
.
dump
(
yaml
))
end
end
db/schema.rb
View file @
2246218c
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2016090
1141443
)
do
ActiveRecord
::
Schema
.
define
(
version:
2016090
2122721
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
...
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