simplify schema.rb reset in upgrade guides
This commit is contained in:
parent
b956605f9e
commit
2b3090d91b
2 changed files with 2 additions and 4 deletions
|
@ -64,12 +64,12 @@ sudo gem install bundler --no-ri --no-rdoc
|
||||||
```bash
|
```bash
|
||||||
cd /home/git/gitlab
|
cd /home/git/gitlab
|
||||||
sudo -u git -H git fetch --all
|
sudo -u git -H git fetch --all
|
||||||
|
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
|
||||||
```
|
```
|
||||||
|
|
||||||
For GitLab Community Edition:
|
For GitLab Community Edition:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
|
|
||||||
sudo -u git -H git checkout 7-3-stable
|
sudo -u git -H git checkout 7-3-stable
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -78,7 +78,6 @@ OR
|
||||||
For GitLab Enterprise Edition:
|
For GitLab Enterprise Edition:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
|
|
||||||
sudo -u git -H git checkout 7-3-stable-ee
|
sudo -u git -H git checkout 7-3-stable-ee
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -18,12 +18,12 @@ sudo service gitlab stop
|
||||||
```bash
|
```bash
|
||||||
cd /home/git/gitlab
|
cd /home/git/gitlab
|
||||||
sudo -u git -H git fetch --all
|
sudo -u git -H git fetch --all
|
||||||
|
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
|
||||||
```
|
```
|
||||||
|
|
||||||
For GitLab Community Edition:
|
For GitLab Community Edition:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
|
|
||||||
sudo -u git -H git checkout 7-3-stable
|
sudo -u git -H git checkout 7-3-stable
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ OR
|
||||||
For GitLab Enterprise Edition:
|
For GitLab Enterprise Edition:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo -u git -H git checkout -- db/schema.rb # local changes will be restored automatically
|
|
||||||
sudo -u git -H git checkout 7-3-stable-ee
|
sudo -u git -H git checkout 7-3-stable-ee
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue