Commit 8544bd7d authored by Evan Read's avatar Evan Read

Merge branch 'docs-add-db-migrate' into 'master'

Adds section about migrate rake command

See merge request gitlab-org/gitlab!32837
parents 83a15896 06aeacf9
......@@ -265,6 +265,20 @@ database: gitlabhq_production
up migration_id migration_name
```
## Run incomplete database migrations
Database migrations can be stuck in an incomplete state. That is, they'll have a `down`
status in the output of the `sudo gitlab-rake db:migrate:status` command.
To complete these migrations, use the following Rake task:
```shell
sudo gitlab-rake db:migrate
```
After the command completes, run `sudo gitlab-rake db:migrate:status` to check if all
migrations are completed (have an `up` status).
## Import common metrics
Sometimes you may need to re-import the common metrics that power the Metrics dashboards.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment