Clear changes to schema.rb when upgrading
Having local changes is quite common and it is a stumbling block when upgrading GitLab. Because schema.rb is generated from the actual DB schema it is OK to clear the local changes.
This commit is contained in:
parent
3dde6bb3fa
commit
b040078974
2 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,7 @@ sudo -u git -H git fetch --all
|
|||
For GitLab Community Edition:
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
|
@ -77,6 +78,7 @@ OR
|
|||
For GitLab Enterprise Edition:
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ sudo -u git -H git fetch --all
|
|||
For GitLab Community Edition:
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
|
@ -31,6 +32,7 @@ OR
|
|||
For GitLab Enterprise Edition:
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue