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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5c064d4e
Commit
5c064d4e
authored
Mar 29, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EE to CE downgrade instructions
parent
9310e6ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
doc/downgrade_ee_to_ce/README.md
doc/downgrade_ee_to_ce/README.md
+8
-6
No files found.
doc/downgrade_ee_to_ce/README.md
View file @
5c064d4e
...
@@ -24,14 +24,14 @@ repositories to use Git LFS before downgrading to the Community Edition.
...
@@ -24,14 +24,14 @@ repositories to use Git LFS before downgrading to the Community Edition.
### Remove Jenkins CI Service entries from the database
### Remove Jenkins CI Service entries from the database
The
`JenkinsService`
class is only available on the Enterprise Edition codebase,
The
`JenkinsService`
and
`JenkinsDeprecatedService`
classes are only available on the
so if you downgrade to the Community Edition, you'll come across the following
Enterprise Edition codebase, so if you downgrade to the Community Edition, you'll come
error
:
across an error similar to the following
:
```
```
Completed 500 Internal Server Error in 497ms (ActiveRecord: 32.2ms)
Completed 500 Internal Server Error in 497ms (ActiveRecord: 32.2ms)
ActionView::Template::Error (The single-table inheritance mechanism failed to locate the subclass: 'JenkinsService'. This
ActionView::Template::Error (The single-table inheritance mechanism failed to locate the subclass: 'Jenkins
Deprecated
Service'. This
error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this
error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this
column if you didn't intend it to be used for storing the inheritance class or overwrite Service.inheritance_column to
column if you didn't intend it to be used for storing the inheritance class or overwrite Service.inheritance_column to
use another column for that information.)
use another column for that information.)
...
@@ -39,18 +39,20 @@ use another column for that information.)
...
@@ -39,18 +39,20 @@ use another column for that information.)
All services are created automatically for every project you have, so in order
All services are created automatically for every project you have, so in order
to avoid getting this error, you need to remove all instances of the
to avoid getting this error, you need to remove all instances of the
`JenkinsService`
from your database:
`JenkinsService`
and
`JenkinsDeprecatedService`
from your database:
**Omnibus Installation**
**Omnibus Installation**
```
```
$ sudo gitlab-rails runner "Service.where(type: 'JenkinsService').delete_all"
$ sudo gitlab-rails runner "Service.where(type: 'JenkinsService').delete_all"
$ sudo gitlab-rails runner "Service.where(type: 'JenkinsDeprecatedService').delete_all"
```
```
**Source Installation**
**Source Installation**
```
```
$ bundle exec rails runner "Service.where(type: 'JenkinsService').delete_all" production
$ RAILS_ENV=production bundle exec rails runner "Service.where(type: 'JenkinsService').delete_all"
$ RAILS_ENV=production bundle exec rails runner "Service.where(type: 'JenkinsDeprecatedService').delete_all"
```
```
## Downgrade to CE
## Downgrade to CE
...
...
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