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
df3f8dd8
Commit
df3f8dd8
authored
Mar 23, 2020
by
Ben Prescott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to migrations docs
parent
b7f09891
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
doc/administration/raketasks/maintenance.md
doc/administration/raketasks/maintenance.md
+4
-1
doc/update/README.md
doc/update/README.md
+7
-2
No files found.
doc/administration/raketasks/maintenance.md
View file @
df3f8dd8
...
@@ -255,7 +255,10 @@ sudo gitlab-rake gitlab:exclusive_lease:clear[project_housekeeping:4]
...
@@ -255,7 +255,10 @@ sudo gitlab-rake gitlab:exclusive_lease:clear[project_housekeeping:4]
## Display status of database migrations
## Display status of database migrations
To check the status of migrations, you can use the following rake task:
See the
[
upgrade documentation
](
../../update/README.md#checking-for-background-migrations-before-upgrading
)
for how to check that migrations are complete when upgrading GitLab.
To check the status of specific migrations, you can use the following rake task:
```
shell
```
shell
sudo
gitlab-rake db:migrate:status
sudo
gitlab-rake db:migrate:status
...
...
doc/update/README.md
View file @
df3f8dd8
...
@@ -122,13 +122,15 @@ If using GitLab 12.9 and newer, run:
...
@@ -122,13 +122,15 @@ If using GitLab 12.9 and newer, run:
sudo
gitlab-rails runner
-e
production
'puts Gitlab::BackgroundMigration.remaining'
sudo
gitlab-rails runner
-e
production
'puts Gitlab::BackgroundMigration.remaining'
```
```
If using GitLab 12.8 and older, run the following using a
Rails console
:
If using GitLab 12.8 and older, run the following using a
[
Rails console
](
../administration/troubleshooting/debug.md#starting-a-rails-console
)
:
```
ruby
```
ruby
puts
Sidekiq
::
Queue
.
new
(
"background_migration"
).
size
puts
Sidekiq
::
Queue
.
new
(
"background_migration"
).
size
Sidekiq
::
ScheduledSet
.
new
.
select
{
|
r
|
r
.
klass
==
'BackgroundMigrationWorker'
}.
size
Sidekiq
::
ScheduledSet
.
new
.
select
{
|
r
|
r
.
klass
==
'BackgroundMigrationWorker'
}.
size
```
```
---
**For installations from source**
**For installations from source**
If using GitLab 12.9 and newer, run:
If using GitLab 12.9 and newer, run:
...
@@ -138,13 +140,16 @@ cd /home/git/gitlab
...
@@ -138,13 +140,16 @@ cd /home/git/gitlab
sudo
-u
git
-H
bundle
exec
rails runner
-e
production
'puts Gitlab::BackgroundMigration.remaining'
sudo
-u
git
-H
bundle
exec
rails runner
-e
production
'puts Gitlab::BackgroundMigration.remaining'
```
```
If using GitLab 12.8 and older, run the following using a
Rails console
:
If using GitLab 12.8 and older, run the following using a
[
Rails console
](
../administration/troubleshooting/debug.md#starting-a-rails-console
)
:
```
ruby
```
ruby
puts
Sidekiq
::
Queue
.
new
(
"background_migration"
).
size
puts
Sidekiq
::
Queue
.
new
(
"background_migration"
).
size
Sidekiq
::
ScheduledSet
.
new
.
select
{
|
r
|
r
.
klass
==
'BackgroundMigrationWorker'
}.
size
Sidekiq
::
ScheduledSet
.
new
.
select
{
|
r
|
r
.
klass
==
'BackgroundMigrationWorker'
}.
size
```
```
There is also a
[
rake task
](
../administration/raketasks/maintenance.md#display-status-of-database-migrations
)
for displaying the status of each database migration.
## Upgrading to a new major version
## Upgrading to a new major version
Major versions are reserved for backwards incompatible changes. We recommend that
Major versions are reserved for backwards incompatible changes. We recommend that
...
...
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