BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
815e01cc
Commit
815e01cc
authored
Dec 21, 2016
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zj-remove-unused-services' into 'master'
Remove unused services from the database Closes #25727 See merge request !8225
parents
8bdecf8e
1812d523
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
zj-remove-unused-services.yml
changelogs/unreleased/zj-remove-unused-services.yml
+4
-0
20161221140236_remove_unneeded_services.rb
db/post_migrate/20161221140236_remove_unneeded_services.rb
+13
-0
schema.rb
db/schema.rb
+1
-1
No files found.
changelogs/unreleased/zj-remove-unused-services.yml
0 → 100644
View file @
815e01cc
---
title
:
Remove unused and void services from the database
merge_request
:
author
:
db/post_migrate/20161221140236_remove_unneeded_services.rb
0 → 100644
View file @
815e01cc
class
RemoveUnneededServices
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
execute
(
"DELETE FROM services WHERE active = false AND properties = '{}';"
)
end
def
down
# noop
end
end
db/schema.rb
View file @
815e01cc
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2016122
0141214
)
do
ActiveRecord
::
Schema
.
define
(
version:
2016122
1140236
)
do
# These are extensions that must be enabled in order to support this database
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